简体   繁体   English

如何在Google App Engine中替代Cloud Storage和BlobStore API处理Blob

[英]How to handle Blobs in Google App Engine alternatively to Cloud Storage and BlobStore API

The BlobStore API is marked as 'superseded' also limited to Limits to 32 MB. BlobStore API被标记为“已取代”,并且仅限于限制为32 MB。 The Google Cloud Storage is a vendor lock-in. Google Cloud Storage是供应商锁定。

Is there a way to upload blobs with a 3rd part lib In Google App Engine (not flexible / managed-vms) for example JClouds 有没有一种方法可以上传带有第3部分库的Blob在Google App Engine中(不是flexible / managed-vms),例如JClouds

And how would one bypass the 60 Seconds request limit that causes DeadlineExceededException? 以及如何绕过导致DeadlineExceededException的60秒请求限制?

To enhance the question; 扩大问题; Security is an issue, it would be preferably to run every request trough the application, so also blob uploads. 安全性是一个问题,最好是通过应用程序运行每个请求,因此也要blob上传。 Which makes the 60 seconds an issue. 这使得60秒成为一个问题。 The seperate uploadUrl is an option, but i do not wish to use BlobStore or Cloud Storage, but is there a generic way to handle things like this in GAE? 可以选择单独的uploadUrl,但是我不希望使用BlobStore或Cloud Storage,但是在GAE中是否有一种通用的方式来处理类似的事情?

32MB is not a limitation of the BlobStore, but rather request playloads that go to your GAE app. 32MB不是BlobStore的限制,而是请求转到GAE应用程序的播放负载。 You can upload larger files to both Cloud Storage and the BlobStore by creating a temporary URL for the user to submit the file to, which does not go through your ap, but rather goes directly to the storage service. 您可以通过创建供用户提交文件的临时URL来将较大的文件上传到Cloud Storage和BlobStore,这不会通过您的ap,而是直接转到存储服务。 You can find documentation about that for blobstore here . 您可以在此处找到有关blobstore的文档。 I don't personally use Cloud Storage, so I don't the a documentation link handy. 我个人没有使用Cloud Storage,因此我没有方便的文档链接。

You can certainly use any other service in a similar way, but I'm afraid I can't explain how other than to say "consult their documentation". 您当然可以类似的方式使用任何其他服务,但是除了说“咨询他们的文档”之外,我无法解释其他方式。 I know that's not a great answer to your question, but maybe insight into how it works with Google's products will help you understand how to use a 3rd party as well. 我知道这并不是您问题的好答案,但是也许深入了解它如何与Google产品配合使用将有助于您了解如何使用第三方。

As for the 60 second request limit: since your upload requests cannot go through your server anyway, this is a non-issue. 至于60秒的请求限制:由于您的上传请求无论如何都无法通过您的服务器,因此这不是问题。 The 60 second limit only applies to requests made directly to your app. 60秒的限制仅适用于直接向您的应用发出的请求。

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

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