简体   繁体   English

如何处理互联网系统中的文件存储?

[英]How to deal with file storage in an internet system?

I have to develop a mobile app where a created user can upload document files to their profile and then another user should be able to download these documents when visiting that profile.我必须开发一个移动应用程序,创建的用户可以将文档文件上传到他们的个人资料,然后另一个用户应该能够在访问该个人资料时下载这些文档。 My first idea for storing these documents was to upload them to a database but for what I have researched it would not be a very good solution.我存储这些文档的第一个想法是将它们上传到数据库,但对于我的研究而言,这不是一个很好的解决方案。 Another solution that I came across was to upload just the reference to them in the database and store them elsewhere, the problem is I don't know what that elsewhere should be.我遇到的另一个解决方案是将它们的引用上传到数据库中并将它们存储在其他地方,问题是我不知道其他地方应该是什么。 So, what would be a good solution for dealing with file storage in that scenario?那么,在这种情况下处理文件存储的好解决方案是什么?

Store the metadata, permissions, and references in a DB but out the actual files in any S3 compatible store such as S3, GCS, wasabi.将元数据、权限和引用存储在数据库中,但将实际文件存储在任何与 S3 兼容的存储中,例如 S3、GCS、芥末。 Bacblaze, DigitalOcean spaces, Minio and a few others Bacblaze、DigitalOcean 空间、Minio 和其他一些

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM