开发者

Replicating uploaded images stored in filesystem

开发者 https://www.devze.com 2023-01-23 04:47 出处:网络
Hi I am currently writing an application that allows users to upload images, which are stored on the filesystem with a reference in the database. However I have multiple application servers which thes

Hi I am currently writing an application that allows users to upload images, which are stored on the filesystem with a reference in the database. However I have multiple application servers which these files need to be replicated to.

What are common methods for doing something like this? 开发者_StackOverflow社区Are there any particularly good tools/scheme I can implement to do this?

edit:formatting


To replicate files, I would use rsync.

Replication of references in the database, assuming that you have multiple writers, may be more complicated and depends on the DBMS and reference assignation scheme.


Consider using an existing file storage platform such as Amazon.com's S3. It would allow you to server user's images directly from their service.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号