Can GAE handle requests from the same user in a same instance

30 views
Skip to first unread message

Jonas C

unread,
Apr 27, 2021, 9:09:01 AM4/27/21
to Google App Engine
It's clear said in GAE documentation that  Any request can be routed to any instance, so consecutive requests from the same user are not necessarily sent to the same instance.

But what if the requests from the same user need to be always handled in the same instance, and the requests from another user are handled in another instance?
Is there a way to realize this? Or any other GCP products are targeted to handle this situation?

Thanks.

David (Cloud Platform Support)

unread,
Apr 28, 2021, 10:24:08 AM4/28/21
to Google App Engine

Since GAE is serverless, you can’t route requests to a specific instance depending on the user. Within GCP, you may be able to use VM’s with a load balancer to route requests to specific VM’s depending on the user using the URL as a distinction, but it would require a lot of work to implement and it can be very pricey.

Reply all
Reply to author
Forward
0 new messages