Skip to content

Support specify dispatch policy for the non-key message in Key_Shared subscription mode #6553

Closed as not planned

Description

@codelipenghui

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.

Activity

  1. added
    type/feature
    on Mar 19, 2020
  2. lhotari commented on Oct 4, 2024

    @lhotari
    Member

    Not exactly implementing a dispatch policy, but #23219 addresses non-key entries.

  3. merlimat commented on Oct 24, 2026

    @merlimat
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/brokerarea/dispatcherlifecycle/staletype/feature

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions