-1

When client logs in to a system, he gets routed to one instance ( or new one created for him ), my first question during using the system on that instance, will he gets switched/routed to another instance ?

If he gets routed, how to prevent that?

serenesat
  • 4,524
  • 10
  • 32
  • 51
sami
  • 127
  • 12

1 Answers1

1

There is no possibility to have 'sticky sessions' with GAE.

If your implementation depends on one client 'sticking' to the same instance, then your application is inherently not scalable.

koma
  • 6,257
  • 2
  • 21
  • 48
  • 2
    Just to add to this, *Manual* and *Basic* [scaling](https://cloud.google.com/appengine/docs/java/modules/) do provide some level of instance addressability but it's really just for long-running processes on resident instances. As *koma* says, if you're relying on it for your user-facing requests, your application will not scale. – tx802 May 20 '15 at 09:21
  • Basic scaling is not enabled in Java. – sami May 20 '15 at 12:31
  • How can Manual scaling help ? Instances can always spawn and requests can be assigned to those new instances. – sami May 20 '15 at 12:32
  • 1
    @sami Basic scaling is not currently available in the Java *Development* Server, it is available in production ! Instances in BASIC or MANUAL scaling are addressable at URLs with the form: `http://instance.version.module.app_id.appspot.com` – koma May 20 '15 at 14:48