Advantages and disadvantages of statelessness

The following are some advantages of statelessness:

  • As the server does not need to manage any session, deploying the services to any number of servers is possible, and so scalability will never be a problem
  • No states equals less complexity; no session (state) synchronize logic to handle at the server side
  • As the service calls (requests) can be cached by the underlying application, the statelessness constraint brings down the server's response time, that is, it improves performance with regard to response time
  • Seamless integration/implementation with HTTP protocols is possible as HTTP is itself a stateless protocol
  • Improves visibility as each request is its own resource and can be treated as an ...

Get Hands-On RESTful API Design Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.