五个不同的GAE站点可以共享一个共同的数据存储吗? [英] Can five different GAE sites all share a common datastore?

查看:82
本文介绍了五个不同的GAE站点可以共享一个共同的数据存储吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除了特定网站的数据存储外,您还可以在所有网站之间共享一个数据存储吗? (像连接到主数据库中的其他MySQL数据库一样)

b

两种解决方法:


  1. 使用同一应用程序的五个版本而不是五个不同的应用程序。他们将共享相同的数据存储。他们的权力不需要看起来一模一样(共享域名除外)。

  2. 通过启用 remote_api 。您需要为此配置安全性,并且性能不可能很好。此外,目前,客户端remote_api仅适用于Python(尽管服务器端也适用于Java)。



In addition to the datastore for your specific site, can you also share one datastore between all your websites? (Like connecting to a different MySQL database from your main MySQL database?)

解决方案

Not really.

Two workarounds:

  1. Use five "versions" of the same app instead of five different apps. They would share the same data store. The sites they power need not look alike at all (except sharing the domain).

  2. Make the data store web-accessible by enabling the remote_api. It is up to you to configure the security for this, and performance is not likely to be great. Also, at the moment, the client-side remote_api is only available for Python (the server-side works on Java, too, though).

这篇关于五个不同的GAE站点可以共享一个共同的数据存储吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆