Reputation: 14927
Are there any use cases (performance etc.) to instantiate multiple consumers within a single node.js thread?
Upvotes: 0
Views: 129
Reputation: 654
Not sure why you'd want to create several consumer instances in one thread, given that a consumer tends to block further execution until it is stopped.
I'd take a look at the Kafka Consumer Docs, as they explain why you'd want to use more than one consumer in the first place.
Upvotes: 1