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

Support Kafka Partition Key #95

Open
whoAbhishekSah opened this issue Sep 5, 2024 · 0 comments
Open

Support Kafka Partition Key #95

whoAbhishekSah opened this issue Sep 5, 2024 · 0 comments

Comments

@whoAbhishekSah
Copy link
Member

whoAbhishekSah commented Sep 5, 2024

Summary

Raccoon doesn't support partition keys when producing messages to a Kafka Topic. Currently, it produces the message to any random partition(ref).

This is a feature request to support the partition key for each message in the API and SDK.

Proposed solution

Enable POST /api/v1/events to support this payload !

{
  "req_guid": "1234abcd",
  "sent_time": {
    "seconds": 1638154927,
    "nanos": 376499000
  },
  "events": [
    {
      "eventBytes": "Cg4KCHNlcnZpY2UxEgJBMRACIAEyiQEKJDczZTU3ZDlhLTAzMjQtNDI3Yy1hYTc5LWE4MzJjMWZkY2U5ZiISCcix9QzhsChAEekGEi1cMlNAKgwKAmlkEgJpZBjazUsyFwoDaU9zEgQxMi4zGgVBcHBsZSIDaTEwOiYKJDczZTU3ZDlhLTAzMjQtNDI3Yy1hYTc5LWE4MzJjMWZkY2U5Zg==",
      "type": "booking",
      "partition_key": "some-key"        // <----------------new key support
    }
  ]
}

Additional context

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

1 participant