|
|
|
|
|
by Dylan16807
1633 days ago
|
|
> Assuming that "session" state persists beyond the lifetime of either the client or the server is generally problematic. I don't think you're interpreting the problem right? The state is tied to the connection, not outliving client or server. But it outlives single requests, and would be uncomfortably expensive to re-establish per request. |
|
Making things not uncomfortably expensive is a good idea.
Relying on websockets to solve this for you is a mistake. It's convenient, but not robust. How would you solve it without websockets using traditional HTTP? The same solution should be used with websockets, but unlocks tremendous opportunities for optimization.