Keep your microservices stateless so that it can utilize cloud native benefits (such as scaling)
Characteristics:
- The process running in the environment should be stateless.
- Should not share anything with other process.
- No sticky sessions
What should do or don’t do.
- Don’t store any data in a local file system.
- Sessions:
- Store your sessions if any in a distributed session storage db, such as Redis.
- No sticky sessions.
- Create stateless services.
No comments:
Post a Comment