9

I'm reading up on Google App engine and I'm thinking of using it as a CDN for a project I'm working on. As far as I can tell, there's two ways to store data. I could use a datastore or I could put files in a directory.

I was brought up believing it's a bad idea to store large binary data in a database, but according to Google, the datastore isn't an RMDB, it just acts like one.

So my gut is telling me to upload files to a directory. However, I thought I'd best canvas an opinion on here before making my mind up.

Has anyone used GAE for stuff like this? And if so, what method did you choose for storing files, and why?

4

3 回答 3

6

You cannot write to the file system in App Engine. You need to use the Datastore to store any data.

Note that if your "large binary files" are actually large, you're going to run in to the 1MB limit on all API calls. An API for storing larger blobs is on the roadmap, but there's no way of knowing when it will be released. At present, you need to split blobs larger than 1MB into multiple datastore entities.

于 2009-10-06T16:03:14.453 回答
2

Blobstore API 允许您存储高达 50 mb 的文件,尽管它是一个实验性 API,并且需要启用计费。此外,它与 bigtable 不同。

http://code.google.com/appengine/docs/java/blobstore/

于 2010-03-24T09:33:51.763 回答
1

如今,谷歌云存储是处理大文件的方式。

于 2015-11-18T10:13:01.550 回答