Skip to content

Backpressure event to end client connection and Pubsub backpressure #414

Answered by ghost
aviadhadidainx asked this question in Q&A
Discussion options

You must be logged in to vote

For example: On connect i can subscribe to something like /user/{userId} and then if i want to send message to user i will use publish.
So I think send will never be used. Just to make sure, can you verify that this is a good approach based on what you know?

That's not a good idea. Use send if you only expect one single connection per that one topic. Use pub/sub if you expect more than 100. Every topic has significant overhead and is poorly optimized for only holding 1 single connection. You can mix send and publish.

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@aviadhadidainx
Comment options

@ghost
Comment options

@hst-m
Comment options

Answer selected by aviadhadidainx
Comment options

You must be logged in to vote
0 replies
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
2 participants