Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

I would structure it like your first suggestion, e.g. one stream per group. While there is a small overhead of streams (it is not huge) I feel like this approach would simplify the logic a lot. I think that optimizing for simple and easy-to-understand code first is usually the best bet. Only if you run into performance problems would I make sacrifices on the simplicity of the code.

Serverpod will still only use a single websocket connection behind the scenes even if you use multiple streams. E.g. you don't get extra overhead in the transport layer. I believe this would work pretty well for you.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by obiwanzenobi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants