Skip to content

Dynamic Producer/Consumer Creation #10785

Closed Answered by michaelklishin
praveengopalan asked this question in Q&A
Discussion options

You must be logged in to vote

Modern messaging protocols delegate topology management to applications for exactly this reason. However, creating a new stream "per event" sounds excessive. But as long as the stream churn is low and there is a reasonable number of them (since each stream is a stateful entity consumes a certain amount of resources on every node it has a replica on), there's nothing wrong with that.

Creating a new publisher, a new connection, a new channel (in AMQP 0-9-1) per message is very much NOT how messaging or streaming protocols are meant to be used:

Opening a new connection is multiple round trips, opening a new channel is a single round trip and adding a stream publisher i…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by michaelklishin
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