J
jeremy
4 minutes
A stateful server is simpler to write and harder to scale. Weigh session affinity, horizontal scaling, and reconnection against the convenience of in-memory state.