Want to do a web disk do not know how to start, might as well spend 3 minutes to read this article, see how to use Serverless, low-cost to do a “unlimited speed, unlimited expansion, while supporting hundreds of file formats online preview, editing, collaboration” exclusive personal & home web disk ~

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 web disk products on the market now, if the free trial, more or less there are some problems, can refer to the 2020 domestic still available web disk recommendation. This article aims to use low cost to create a ** “personal exclusive, no speed limit, such as Windows experience private cloud disk”. **

KodBox met Serverless

Why KodBox?

I have investigated a lot of open source Web UI Filemanager, kodbox deeply moved me, rich functions beyond my imagination, summed up as follows:

Simple, 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.

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.

DEMO Experience Address:

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:

  1. If you successfully deploy, the default admin account, you can implement more advanced user management level plug-in installation, etc..
  2. kodcloud.com/download/ You can download a PC or mobile phone client to implement automatic backup and synchronization of web disks…

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 tutorial.

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
  • Use the admin account to log in to the background storage management and add a suitable storage

For example, add an OSS Bucket.

Think about

Meet Serverless in article PHP 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.

Reference:

  • Ai media advisory | China personal network backup special investigation report in 2020-2021
  • Github.com/devsapp/sta…
  • Github.com/kalcaddle/k…
  • 2020 domestic also can use the network disk recommendation

The original link

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