🏗️Stateful Service
Also known as Stateful Application, Stateful Server, Stateful Process
A service that keeps data between calls. So the right copy must answer.
Think of it like
It is like your own doctor who keeps your file. You have to go back to the same one.
Example
Emma's chat server keeps each open chat in memory. When it restarts, every user in those chats is cut off and has to join again.
Why it matters
Some jobs need state, like databases and live games. Knowing which parts hold state tells you what needs backups and careful moves.
Definition
Common mistake
Key takeaways
- 1Remembers. Data stays between requests.
- 2The right copy only. Requests must find it.
- 3Handle with care. Back it up, move it slowly.