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 OrderingKey related apis #401

Closed
freeznet opened this issue Nov 30, 2020 · 0 comments · Fixed by #427
Closed

add OrderingKey related apis #401

freeznet opened this issue Nov 30, 2020 · 0 comments · Fixed by #427

Comments

@freeznet
Copy link
Contributor

Is your feature request related to a problem? Please describe.
According to apache/pulsar#4079, orderingKey was introduced to let user set message order manually, currently pulsar-client-go do not have related apis exposed to user. We should add orderingKey related apis to ProducerMessage and Message.

Describe the solution you'd like

  • add OrderingKey to ProducerMessage
  • add OrderingKey() to Message interface
  • sync OrderingKey to SingleMessageMetadata

Additional context
Once this issue is resolved, new test with key batch builder should add as well. ref: #400

wolfstudy pushed a commit that referenced this issue Dec 23, 2020
Fixes #401

### Motivation
According to apache/pulsar#4079, orderingKey was introduced to let user set message order manually, currently pulsar-client-go do not have related apis exposed to user. We should add orderingKey related apis to pulsar-client-go.

### Modifications

- add OrderingKey to ProducerMessage
- add OrderingKey() to Message interface
- sync OrderingKey to SingleMessageMetadata
- tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants