Daniel
03/19/2024, 6:04 PMpulsarClient
.newConsumer(schema)
.topic(topic)
.subscriptionName(subscription)
.subscriptionType(SubscriptionType.Shared)
.messageListener(messageListener)
.subscribe()
and my client is initiated like so
PulsarClient.builder().serviceUrl(pulsarClientUrl).build()
Then there is only 1 thread in which all 3 consumers are going to consume messages from their respective topics, right?
Assuming I have the requisite CPU cores allocated, would I then see performance improvement in doing the following:
PulsarClient.builder().serviceUrl(pulsarClientUrl).listenerThreads(3).build()
PS: Sorry if this has been asked before; I am not able to search for older conversations where this would have been answered!Daniel
03/28/2024, 6:50 AMDaniel
03/28/2024, 6:51 AMLari Hotari
03/28/2024, 7:04 AMLari Hotari
03/28/2024, 7:05 AMIf you have a question, please consider asking it at https://github.com/apache/pulsar/discussions/new?category=q-a. It will make it searchable by others.
This channel's chat history can be found at https://www.linen.dev/s/apache-pulsar/c/general.Please first ask your question on GitHub discussions and then promote the question here. That will help us build a knowledge base over time.
Daniel
03/28/2024, 7:07 AMDaniel
03/28/2024, 8:50 AMLari Hotari
03/28/2024, 10:02 AM