Google应用引擎和Google云存储之间的差异

时间:2022-08-22 11:15:08

We are building an architecture that will transfer 1 GB of data everyday at a specific time to 300 android devices. Initially the data will be transferred from a standalone PC to a remote data storage. We are considering services from Google. Which google services might be used for this scenario (Google App Engine or Google Cloud Storage)?

我们正在构建一个架构,它将在特定时间每天将1 GB数据传输到300个Android设备。最初,数据将从独立PC传输到远程数据存储。我们正在考虑来自Google的服务。哪种Google服务可能会用于此方案(Google App Engine或Google云端存储)?

Thanks in advance.

提前致谢。

2 个解决方案

#1


1  

As mentioned by Rene, you can use GCS to store data. Your application logic can be served out of GAE.

如Rene所述,您可以使用GCS存储数据。您的应用程序逻辑可以通过GAE提供。

What language are you using to develop your application? My recommendation would be to use Java or Python 2.7 for now.

您使用什么语言来开发应用程序?我的建议是现在使用Java或Python 2.7。

For authentication, you can use the oAuth services: https://cloud.google.com/appengine/docs/python/oauth/

对于身份验证,您可以使用oAuth服务:https://cloud.google.com/appengine/docs/python/oauth/

To interact with GCS, use the recommended GAE SDK: https://cloud.google.com/appengine/docs/python/googlecloudstorageclient/

要与GCS互动,请使用推荐的GAE SDK:https://cloud.google.com/appengine/docs/python/googlecloudstorageclient/

#2


2  

Use Cloud Storage to store the file, if you set the appropiate cache headers you can save in traffic. Use App Engine to authenticate users and then to give them the cloud storage url to download the file. You can omit the GAE part and from inside the mobile app construct the url with the path to download the file everyday. Storing files in GCS is much cheaper than storing them in GAE.

如果您设置适当的缓存标头,则可以使用云存储来存储文件,以节省流量。使用App Engine对用户进行身份验证,然后为他们提供云存储URL以下载文件。您可以省略GAE部分,并从移动应用程序内部构建带有每天下载文件的路径的URL。在GCS中存储文件要比在GAE中存储文件便宜得多。

#1


1  

As mentioned by Rene, you can use GCS to store data. Your application logic can be served out of GAE.

如Rene所述,您可以使用GCS存储数据。您的应用程序逻辑可以通过GAE提供。

What language are you using to develop your application? My recommendation would be to use Java or Python 2.7 for now.

您使用什么语言来开发应用程序?我的建议是现在使用Java或Python 2.7。

For authentication, you can use the oAuth services: https://cloud.google.com/appengine/docs/python/oauth/

对于身份验证,您可以使用oAuth服务:https://cloud.google.com/appengine/docs/python/oauth/

To interact with GCS, use the recommended GAE SDK: https://cloud.google.com/appengine/docs/python/googlecloudstorageclient/

要与GCS互动,请使用推荐的GAE SDK:https://cloud.google.com/appengine/docs/python/googlecloudstorageclient/

#2


2  

Use Cloud Storage to store the file, if you set the appropiate cache headers you can save in traffic. Use App Engine to authenticate users and then to give them the cloud storage url to download the file. You can omit the GAE part and from inside the mobile app construct the url with the path to download the file everyday. Storing files in GCS is much cheaper than storing them in GAE.

如果您设置适当的缓存标头,则可以使用云存储来存储文件,以节省流量。使用App Engine对用户进行身份验证,然后为他们提供云存储URL以下载文件。您可以省略GAE部分,并从移动应用程序内部构建带有每天下载文件的路径的URL。在GCS中存储文件要比在GAE中存储文件便宜得多。