Have you failed a job interview?
Send us your job interview questions and get correct answers.

BP143: Do not use session in your RESTful API endpoints

Session is a killer of scalability and it is difficult to maintain. Do not use it because it will cause you many problems once you start using web farms with load balancer and multiple web nodes.

Note that RESTful APIs must be stateless. When you use session, the constraint is not met.


No Comments Yet.
Be the first to tell us what you think.

Download Better Coder application to your phone and get unlimited access to the collection of enterprise best practices.

Get it on Google Play