Microservice on GAE+ Mix of Standard and Flexible GAE Services

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 10:14:04

问题


We have two separate projects as follows

  1. GAE Standard on JAVA runtime, let us say- APP1
  2. GAE Flexible on Python runtime, let us say- APP2

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

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

Quick answer is highly appreciated.

ps.

Google documentation does not answer this question directly and hints that it is unlikely.


回答1:


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:

Code can be deployed to services independently, and different services can be written in different languages, such as Python, Java, Go, and PHP.

You just need to take care of:

  • 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.


来源:https://stackoverflow.com/questions/47992254/microservice-on-gae-mix-of-standard-and-flexible-gae-services

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!