Introduction to Distributed File Server FastDFS

Edited by xl_echo, welcome to reprint, please declare the source of the article. For more IT, programming cases and information, please contact QQ: 1280023003
Undefeated in a hundred battles, Yibu claims to be always victorious, never succumbed to a hundred defeats, and Yineng strives to move forward. - This is the real power! !


Introduction to FastDFS

FastDFS is an open source lightweight distributed file system implemented in
pure C, supports Linux, FreeBSD and other UNIX systems
. It is similar to google FS, not a general file system and can only be accessed through a proprietary API. Currently, C, Java and PHP are provided. The API
is tailored for Internet applications, solves the problem of large-capacity file storage, and pursues high performance and high scalability.
FastDFS can be regarded as a file-based key-value storage system, and it is more appropriate to call it a distributed file storage service.

Functions provided by FastDFS
upload upload files
download download files delete
delete files
When the problem occurs, because the failure to solve it in time leads to catastrophic consequences) What philosophy does the file system need to conform to, or what design philosophy should be used?

A good distributed file system should preferably provide Nginx modules, because for Internet applications, static resources such as files are generally downloaded through HTTP. Uploading and downloading just got super easy. In addition, the proportion of website applications in the Internet field is very high, so PHP, as a very mature language with satisfactory performance, is also very important to provide corresponding extensions. So in the field of application, Fastdfs is very suitable.

Filesystems are inherently static resources, so things like modifiable or appendable files don't seem to make much sense. It is also best not to support file attributes, because attributes such as file extension and size can be appended to the file name to avoid storing attribute information. Also, by adding attribute support, it's better to support it with something else, such as redis, etc., to avoid making this distributed file system very complicated.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324696458&siteId=291194637