照片存储Web应用程序 [英] Photo storage for web app
问题描述
可能重复:结果
用户图片 - 数据库与文件系统存储
块引用>您好!我应该在哪里存储照片了类似Facebook的应用程序吗?本地文件夹中或服务器上把它们上传到数据库?我不打算让这个应用程序商业化。
解决方案在文件系统(文件夹),并存储路径数据库中存储的图像。
编辑:
找到关于Facebook如何处理图像存储一篇有趣的文章:
<一个href=\"http://perspectives.mvdirona.com/2008/06/30/FacebookNeedleInAHaystackEfficientStorageOfBillionsOfPhotos.aspx\"相对=nofollow> Facebook的:大海捞针:
从上述文章中的一些事实:
- 照片事实:
- 6.5B照片共
- 4〜5种尺寸每张照片被物化(30B文件)
- 475K帧/秒
- 通过CDN(Akamai的&安培; Limelight系列)晴担任
- 200K头像/秒
- 百米上传/周
- 存储在 NetApp文件管理
Possible Duplicate:
User images - database vs. filesystem storageHello ! Where should i store photos for a facebook-like app ? locally on the server in a folder or upload them to a database ? I am not intending to make this app commercial .
解决方案Store images in file system(folders) and store path in database.
EDIT:
Found an interesting article about How Facebook handle image storage:
Facebook: Needle in a Haystack: Efficient Storage of Billions of Photos
Some facts from above article:
- Photo facts:
- 6.5B photos in total
- 4 to 5 sizes of each picture is materialized (30B files)
- 475k images/second
- Mostly served via CDN (Akamai & Limelight)
- 200k profile photos/second
- 100m uploads/week
- Stored on netapp filers
这篇关于照片存储Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!