Stateless Component
State is handled external of application components to ease their scaling-out and to make the application more tolerant to component failures.
How can elasticity and robustness of an application component be increased? |
Context
The components of a Distributed Application are deployed among multiple cloud resources to benefit from this distributed runtime environment through scaling out.The most significant factor complicating addition and removal of component instances in this scope is the internal state maintained by them. In case of failure, this information may even be lost.
Solution
Application components are implemented in a fashion that they do not have an internal state. Instead, their state and configuration is stored externally in Storage Offerings or provided to the component with each request.
Related Patterns
Relational Database, Key-Value Storage, Blob Storage, Message-oriented Middleware