You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support specify dispatch policy for the non-key message in Key_Shared subscription mode #6553
Master issue: #4077 Is your feature request related to a problem? Please describe.
Currently, the non-key message dispatch to a consumer in Key_Shared subscription mode. It's better to support set up the dispatch policy at the client-side.
Describe the solution you'd like
Allow the client to set up a non-key message dispatch policy.
Thanks @codelipenghui. Since Pulsar 4.0, Key_Shared no longer sends every message without a key to a single consumer: #23219 uses the producer name and sequence id as the fallback key, so those messages are spread across consumers. That covers the main reason for a non-key dispatch policy, so I'm closing this as not planned. Please reopen if there is a use case that needs a different policy.
Activity
lhotari commentedon Oct 4, 2024
Not exactly implementing a dispatch policy, but #23219 addresses non-key entries.
merlimat commentedon Oct 24, 2026
Thanks @codelipenghui. Since Pulsar 4.0, Key_Shared no longer sends every message without a key to a single consumer: #23219 uses the producer name and sequence id as the fallback key, so those messages are spread across consumers. That covers the main reason for a non-key dispatch policy, so I'm closing this as not planned. Please reopen if there is a use case that needs a different policy.