Service in multiple languages

37 views
Skip to first unread message

tipotto 404

unread,
Mar 25, 2021, 11:48:15 AM3/25/21
to Google App Engine
Hi.

It is possible to deploy an API built in two different languages (Node.js and Python here) as one service?

If not, how fast is it to communicate between two services compared to it with external server?

According to the previous post and documentation below, I think it should be deployed as two separate services and communicate each other through an HTTP invocation.

However, I'd like to know some solutions to the issue if exists, as it is important for my app to response to client immediately.

Thank you.


Previous post: Multiple languages in the same application

Google Documentation (especially "App Engine Services as microservices" section):


David (Cloud Platform Support)

unread,
Mar 25, 2021, 5:30:04 PM3/25/21
to Google App Engine

Hello,

You can deploy different services/versions and communicate internally when using App Engine Flex, as Flex instances are similar to GCE instances you can configure Firewall rules and add a network tag on a VPC network to control access to your services. Please look at this document for a reference on how to configure your app.yaml file to specify a network tag. This will work for Flex to Flex services. 

For App Engine Standard, you can send targeted HTTP requests to communicate with another service. Please take a look at our documentation about this specifically for App Engine Standard which may list other alternatives. 

App Engine services can also communicate using Cloud Pub/Sub, which provides reliable asynchronous many-to-many messaging between processes.

matt wilbert

unread,
Mar 25, 2021, 10:51:33 PM3/25/21
to google-a...@googlegroups.com
If it turns out to be a problem doing it as two App Engine services, perhaps consider using Cloud Run instead of App Engine?

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/6ada476e-1ce2-4e99-bdd8-80e0fe23ae92n%40googlegroups.com.

tipotto 404

unread,
Mar 29, 2021, 1:59:56 AM3/29/21
to Google App Engine
Sorry for the delay. 

Thank you for the reply. 
Okay, I'll think about using Cloud Run and App Engine Flex.

2021年3月26日金曜日 11:51:33 UTC+9 matt:
Reply all
Reply to author
Forward
0 new messages