我们有两个独立的项目,如下
- JAVA 运行时的 GAE 标准,比方说 - APP1
- GAE 在 Python 运行时上非常灵活,比方说 - APP2
我们希望将两个项目移动到一个具有两项服务的微服务应用程序项目中,例如 APP1service(默认)和 APP2service。
想要检查是否可以在微服务设置中托管共享一个应用程序身份的标准且灵活的 GAE 服务?
非常感谢快速回答。
附注
Google documentation does not answer this question directly and hints that it is unlikely.
最佳答案
是的,可以将任意环境和语言混合作为同一 GAE 应用程序内的单独服务。虽然没有明确提及,但服务的代码隔离暗示了这一点。来自 App Engine Services as microservices :
Code can be deployed to services independently, and different services can be written in different languages, such as Python, Java, Go, and PHP.
您只需要照顾:
- 首先部署默认服务,请参阅https://stackoverflow.com/a/42361987/4495081
- 部署所有服务共享的应用级配置:调度、cron、队列等。
关于google-app-engine - GAE+ 标准和灵活 GAE 服务混合的微服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47992254/