Re:A terminal stock watcher and stock position tracker
by jordache on Wednesday February 10, 2021 @04:03PM
(#26094768)
i thought websocket pattern requires statefulness on the server side. That's the finite constraint that I'm thinking of.
[ Parent
| on HN ]
Re:A terminal stock watcher and stock position tracker
by coder543 on Wednesday February 10, 2021 @04:48PM
(#26095262)
Server side state can take many forms. In general, you already have to track state per customer anyways, and that often goes in a database. You can also keep per client state in the database too, if it won’t fit in memory for some reason.
idk, it all depends on what you’re using the websockets for. If you have to send messages from one websocket client to another, things can get harder because those two websockets might not be connected to the same server.