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

Add a push function for custom message key #51

Merged
merged 2 commits into from
Jul 24, 2024
Merged

Conversation

liuyts
Copy link

@liuyts liuyts commented Sep 20, 2023

add a push function for custom message key #25

@kevwan kevwan merged commit f2ee5c0 into zeromicro:master Jul 24, 2024
2 checks passed
@arllen133
Copy link

这个修改只是修改了消息体中的key,并不能保证相同key 的消息发送到相同的分区

因为发送到哪个分区是由 Balancer 和key 共同决定的

想要相同的key 发送到同一个分区,必须要将balancer设置成hash并且消息的key相同

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

Successfully merging this pull request may close these issues.

3 participants