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

[feature request] Support publish messages to partitioned topics #383

Open
yash2 opened this issue May 9, 2024 · 3 comments
Open

[feature request] Support publish messages to partitioned topics #383

yash2 opened this issue May 9, 2024 · 3 comments
Assignees

Comments

@yash2
Copy link

yash2 commented May 9, 2024

Could we provide support for node clients to publish messages partition topics,

  • So publishing messages to partitioned topics, can specify a routing mode. If we not specify any routing mode then round-robin routing mode should be used.

Reference docs supporting the functionality for other client libraries: https://pulsar.apache.org/docs/next/client-libraries-producers/#publish-messages-to-partitioned-topics

@merlimat
Copy link
Contributor

merlimat commented May 9, 2024

Client is based on C++ lib which already supports publishing to partitioned topics transparently.

The routing mode can be selected with the messageRoutingMode property when creating the producer.

@shibd shibd self-assigned this May 9, 2024
@BewareMyPower
Copy link
Contributor

Currently the default routing mode is single-partition in the underlying C++ client by default.

Node.js client provides the option to switch the routing mode, see

messageRoutingMode?: MessageRoutingMode;

@shibd
Copy link
Member

shibd commented May 15, 2024

@yash2 Do you want Customize message router for Node.js client?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants