yogibear
yogibear

Reputation: 14927

How many consumer instances should you create per node thread?

Are there any use cases (performance etc.) to instantiate multiple consumers within a single node.js thread?

Upvotes: 0

Views: 129

Answers (1)

Simon Clark
Simon Clark

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

Related Questions