Sunteți pe pagina 1din 5

Stateful VS Stateless Applications

Why stateless…?

 Response is independent of any server state


 Faster response
 Maintaining stateful information is difficult in case of failures
 Reduces memory usage
 Reduces session expiration issues
How it works…?

 It doesn’t depend on previously stored state.


 State information send along with request
 Uniform load balancing achieved
 Load balancer sends traffic to any server
 it doesn’t store any kind of state in memory or disk
 Each request is handled based on the information available for
that interactions.
Benefits of Stateless Applications

 Consistency
 Eliminates session expiry issues
 Easy to scale horizontally.
 Easy to add/remove new instance on demand
 Reduces Memory Usage
 Performance Efficiency.
Thank you 

S-ar putea să vă placă și