I would like to know if oauth implementation with JWT is an alternate for sticky session? If while using JWT, the complete payload/signature info is sent between client and load balanced servers, then why do we still need sticky sessions? One of the senior architects was saying that the sticky session is required even if we use JWT, but I don’t get his point as why is sticky session required.
Please help!
Regards, Sriram
Sticky sessions are best avoided these days by API servers. Consider a cluster with 10 instances:
All of this means that being non-sticky is preferred under load, since there is no overhead to hitting a different server.