是否可以在多个 GAE 应用程序之间共享数据存储

发布于 2024-09-16 23:37:50 字数 294 浏览 11 评论 0原文

我喜欢在其他 GAE 应用程序中使用一个 GAE 应用程序中保存的数据。 基本上在 Google App Engine (Python) 开发和生产中的多个 Web 应用程序之间共享数据存储。

如果可能的话还可以: http://localhost:####/_ah/admin/datastore 我想查看未运行和/或在一个屏幕上运行的其他应用程序中的数据?

感谢您的帮助!

I like to work with data saved in one GAE application in other GAE applications.
Basically share the datastore between multiple web applications in Google App Engine (Python) Development and Production.

Also if possible with:
http://localhost:####/_ah/admin/datastore
I like to view data in other applications not runnings and/or running on one screen?

Thanks for the help!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

铜锣湾横着走 2024-09-23 23:37:50

不,数据存储完全包含在应用程序中。不存在从一个应用程序到另一应用程序的直接共享数据。

但是,您可以公开一项 Web 服务,使一个应用程序中的数据可供另一个应用程序使用,例如使用 REST。

Nope, datastores are totally contained within the application. There is no direct sharing of data from one app to another.

You could however expose a web service to make data from one application available to another, using REST for example.

偏爱自由 2024-09-23 23:37:50

我想这里的核心问题是您希望在 GAE 上托管的两个应用程序之间共享数据。有两种方法可以做到这一点。

  1. 您可以使用 Google Cloud Datastore 来存储信息。这为您提供了更大的灵活性,因为您可以让不同的服务访问数据存储。您甚至可以在 Google 计算引擎上运行某些东西并与数据存储进行通信。

  2. 使用 google appengine 模块。所有模块共享相同的数据存储。在您的情况下,每个模块可能是不同的应用程序。

希望这有帮助。

I guess the core problem here is that you would like to share the data between two applications hosted on GAE. There are two ways to do that.

  1. You could use Google Cloud Datastore to store the information. This gives you more flexibility as you can have different services accessing datastore. You could even have something running on google compute engine and communicating with datastore.

  2. Use google appengine modules. All modules share the same datastore. In your case each module could be a different application.

Hope this helps.

趁年轻赶紧闹 2024-09-23 23:37:50

不可以,数据存储只能由一个应用程序访问(但该应用程序可以为多个站点提供服务)。

如果您希望 Google 允许多个应用程序直接访问同一数据存储,那么您应该为此问题加注星标:
http://code.google.com/p/googleappengine/issues/详细信息?id=1300

不幸的是,这个问题的编写方式有点含糊,但我认为它的意思是“多个应用程序”而不是“多个帐户”。

No, a datastore can only be accessed by one application (but that app can serve up multiple sites).

If you want Google to allow multiple applications to directly access the same datastore then you should star this issue:
http://code.google.com/p/googleappengine/issues/detail?id=1300

Unfortunately the way this issue is written is a bit ambiguous, but I take it to mean 'multiple applications' rather then 'multiple accounts'.

反差帅 2024-09-23 23:37:50

FWIW,您可以使用其他版本和语言部署应用程序 - 但具有相同的 id 和 能够同时访问其数据存储

FWIW, you can deploy an application with another version and language - but with the same id, and be able to access its datastore concurrently

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文