Introduce: although there are some net dish product on market now, if free try out, more or less have a few problems, can refer to the article “2020 home still can use net dish recommend”. This paper aims to create a “private cloud disk for personal use, without any speed limit, such as Windows experience” with low cost.

The author | west flow

preface

With the continuous growth of global big data, the demand for data cloud storage capacity will also continue to expand in the future. According to iiMedia Research, the global data center storage capacity will reach 272 exabytes by 2020. The growing demand for personal data and cloud storage has accelerated the development of the personal cloud service market, with more than 400 million users of personal cloud disks in China in 2020.

Although there are some net disk products on the market now, if free trial, more or less there are some problems, you can refer to the article “2020 domestic still can use the net disk recommendation”. This paper aims to create a “private cloud disk for personal use, without any speed limit, such as Windows experience” with low cost.

KodBox met Serverless

1. Why KodBox?

I have investigated a lot of open source Web UI Filemanager, kodbox deeply moved me, rich functions beyond my imagination, summed up is: simple and efficient, smooth, cloud storage & collaborative office new experience

  • For example, a private cloud disk or enterprise web disk using Windows
  • Fully support private deployment, secure and controllable storage
  • Preview, edit and play hundreds of file formats online
  • Easy sharing, efficient collaboration, fine-grained permission control
  • Full platform client coverage, anytime, anywhere access, easy synchronization mount

For more information, see Kodbox Chinese.

2. Why Serverless hosted KodBox apps?

Network disk operation time is more discrete, especially for personal and family websites, standing a machine (database also need to be installed on the machine, otherwise there are separate database costs), will produce a lot of waste, such as the early morning everyone sleep, machine resources are idle. At 8 o ‘clock in the evening, when all the family members are in entertainment, the resources available on one machine are not enough, for example, we can watch different 4K HD movies online at the same time (of course, everyone can quickly download them to their own local PC or mobile phone). Serverless is a good solution to this need, charging by volume and expanding capacity on request.

Ali Cloud function computing is an event-driven fully managed computing service. Use the function to calculate:

  • Instead of purchasing and managing infrastructure like servers, you just write and upload code.
  • Functional computing prepares you with computing resources to run tasks flexibly and reliably.
  • Payment by volume, free operation and maintenance
  • Provides log query, performance monitoring, and alarm functions.

With functional computing, you can quickly build any type of application or service and only pay for the resources that the task actually consumes.

Deploying kodbox projects to functional computing, database persistence using Ari Cloud file storage, Content storage using Ali Cloud object storage, we get an exclusive “computing + storage can Serverless unlimited expansion, unlimited network speed, support hundreds of file formats online preview editing and playing, easy sharing and collaboration” personal & home web disk.

3. DEMO experience address

Kodbox.fc-nas-filemgr.1986114430573743.cn-hangzhou.fc.devsapp.net account: test

Password: test @ 123

After logging in, you can get a Web version of Windows operating system experience, preview, edit, and move your NAS disk or OSS multimedia files.

Of course: if you successfully deploy, default admin account, you can implement more advanced user management level plug-in installation and so on… Kodcloud.com/download/ can… Automatic backup and synchronization of web disks on PC or mobile client…

Cost analysis

  • Calculation cost: 0.000110,592 yuan/GB-second, each month has 400,000 GB-second free quota, this is basically free.
  • Traffic charge: Function request response traffic: 0.50 yuan /GB, depending on how many files you download from your web disk each month, there is no traffic charge for uploading. There is no speed limit for upload and download.
  • Persistence cost: Using Ali Cloud NAS, mainly deploy sqLite database required by Kodbox application, which is 0.35 GB/ month (* with low frequency media, as low as 0.19). Since the unit price of NAS is relatively high, it is suggested that NAS disk only be used for SQLite database storage of Kodbox. No more than 1G, the fee is 0.35 yuan.
  • For simple storage, you can choose your own storage type. Take OSS for file storage as an example. The OSS storage price is shown in the following table.

Rapid deployment actual combat operation

  • Open Ali Cloud function computing
  • Open Ali Cloud file storage
  • After logging into ali Cloud console, open the tutorial start-FC-Kodbox and follow the instructions (see the end of the article).

Tips:

  • If some of the steps in the tutorial take a long time, please be patient. Cloudshell provides machine specifications by default with low CPU performance, and ZIP and unzip take a long time
  • If you have your own domain name, you can replace the last obtained domain name for accessing the home NAS with your own domain name, refer to the configuration custom domain name calculated by the function
  • Log in as user admin to the background storage management system and add a suitable storage, for example, an OSS Bucket.

Think about

In the article PHP Meets Serverless to help You Solve these Pain points! In Serverless, we discuss in detail the best practices and the great value that PHP brings to Serverless. One of the most important points is the FC pop-up instance evolution into a storage execution environment, PHP Web project storage to NAS. At this point, we can use Kodbox + FC to implement a Windows-like WEB UI to manage PHP projects on NAS, including uploading, overwriting, deleting, modifying, etc.

Refer to the link

  • Ai media advisory | 2020-2021 Chinese personal network backup special investigation report www.iimedia.cn/c400/75531….
  • Guide the tutorial start-fc-kodboxhttps://github.com/devsapp/start-fc-kodbox
  • Kodcloud.com/#lang=zh\_C…
  • Github.com/kalcaddle/k…
  • 2020 domestic also can recommend zhuanlan.zhihu.com/p/107343480 network location
  • Help.aliyun.com/document\_d…
  • PHP meets Serverless to help you solve these pain points! Developer.aliyun.com/article/874…

The original link

This article is the original content of Aliyun and shall not be reproduced without permission.