Pulsar: per-consumer / per-producer customization hooks (#3179)#3200
Merged
Conversation
Adds per-endpoint ConfigureConsumer / ConfigureProducer hooks that run against DotPulsar's IConsumerBuilder / IProducerBuilder immediately before the consumer/producer is created — so users can tune consumer name, receive-queue size, priority, compression, batching, routing mode, etc. per endpoint (previously only the global IPulsarClientBuilder was exposed). Analogue of Kafka's ConfigureConsumer/ConfigureProducer. - PulsarEndpoint.ConfigureConsumer / ConfigureProducer hooks. - PulsarListener applies ConfigureConsumer to the main and retry consumers; PulsarSender applies ConfigureProducer (covers the listener's internal requeue sender too). - PulsarListenerConfiguration.ConfigureConsumer(...)/ConfigureProducer(...) and PulsarSubscriberConfiguration.ConfigureProducer(...). Tests: config unit tests + integration test proving both callbacks run while building the real consumer/producer and the customized pair still deliver end to end. Docs updated. Unblocks #3180. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jun 23, 2026
Closed
This was referenced Jul 9, 2026
This was referenced Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the Pulsar re-evaluation epic #3176. Fixes #3179.
Adds per-endpoint
ConfigureConsumer/ConfigureProducerhooks that run against DotPulsar'sIConsumerBuilder/IProducerBuilderimmediately before the consumer/producer is created. Previously only the globalIPulsarClientBuilder(viaUsePulsar) was exposed, so per-endpoint knobs (consumer/producer name, receive-queue size, priority, compression, batching, routing mode, …) weren't reachable. Analogue of Kafka'sConfigureConsumer/ConfigureProducer.Changes
PulsarEndpoint.ConfigureConsumer/ConfigureProducerhooks.PulsarListenerappliesConfigureConsumerto the main and retry consumers;PulsarSenderappliesConfigureProducer(also covers the listener's internal requeue sender).PulsarListenerConfiguration.ConfigureConsumer(...)/ConfigureProducer(...)andPulsarSubscriberConfiguration.ConfigureProducer(...).Tests
Docs
New "Customizing Consumers & Producers" section.
Unblocks #3180 (acknowledgment strategy).
🤖 Generated with Claude Code