Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance and latency with large number of sparse consumers. #3706

Merged
merged 1 commit into from Dec 13, 2022

Commits on Dec 13, 2022

  1. Improve performance and latency with large number of sparse consumers.

    When a stream had a large number of consumers on a server that were sparse, the signaling mechanism would do a linear scan to signal matching consumers. As usage patterns have continued to have more consumers that are filteres and sparse, meaning a message is destined for a single or small number of consumers.
    
    This change moves selection to a sublist that tracks only active consumer leaders for selection, which optimizes selection of consumers to signal when the number of consumers is large.
    
    Signed-off-by: Derek Collison <derek@nats.io>
    derekcollison committed Dec 13, 2022
    Configuration menu
    Copy the full SHA
    855f790 View commit details
    Browse the repository at this point in the history