Hands-On Cloud:Native Microservices with Jakarta EE
上QQ阅读APP看书,第一时间看更新

Processes

The sixth factor is related to the states that your application might have. And a cloud-native application must be stateless to respect characteristics such as scalability, flexibility, resilience, and fault tolerance.

Every state must be kept, stored, and saved to a backing service, such as storage, or a database, which are stateful by definition.

Long story short, don't hold states.