本文介绍了GAE上的微服务+标准服务和灵活GAE服务的混合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有以下两个独立的项目

We have two separate projects as follows

  1. 关于JAVA运行时的GAE标准,让我们说-APP1
  2. GAE在Python运行时上很灵活,让我们说-APP2

我们希望将两个项目移动到具有两个服务的微服务应用程序项目中,例如APP1service(默认)和APP2service.

We want to move both the projects in one micro-services application project with two services, say APP1service (default), and APP2service.

是否想检查微服务设置中是否可以托管共享一个应用程序身份的标准和灵活的GAE服务?

Wanted to check if it is possible to host standard and flexible GAE services sharing one application identity in microservices setup?

快速回答非常受赞赏.

ps.

推荐答案

是的,可以在同一GAE应用程序中将环境和语言混合在一起作为单独的服务.尽管没有明确提及,但服务的代码隔离暗示了这一点.来自将App Engine服务作为微服务 :

Yes, it is possible to have any mix of environments and languages as separate services inside of the same GAE application. While not explicitly mentioned, it is implied by the code isolation of services. From App Engine Services as microservices:

您只需要照顾:

  • deploying the default service first, see https://stackoverflow.com/a/42361987/4495081
  • deploying the app-level configurations shared by all services: dispatch, cron, queue, etc.

这篇关于GAE上的微服务+标准服务和灵活GAE服务的混合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 07:55