-
Notifications
You must be signed in to change notification settings - Fork 2k
feat(kafka-deduplicator): integrate BatchConsumer into processing pipeline #40760
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
base: master
Are you sure you want to change the base?
Conversation
| branches: | ||
| - 'master' | ||
| - 'eli.r/kdedup-batch-consumer-inst-1' | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
☝️ will remove this after smoke testing
| pub original_headers: Option<OwnedHeaders>, | ||
|
|
||
| pub original_payload: Option<Vec<u8>>, | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
☝️ makes these easier to pass along - just grabbing the stuff we need after message hydration instead of a full msg detach() 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
12 files reviewed, 2 comments
9ac0101 to
c9ef324
Compare
2307e0e to
c9f4637
Compare
Problem
Before fully replacing the
StatefulConsumerwe want to smoke test theBatchConsumeron live event stream.Changes
Just enough refactor to get the
BatchConsumerrunning in production. Due toMessageProcessortrait and more elaborate test plumbing required by stateful consumer to integrate with offset tracker, this isn't a complete/clean cutover yet.The goal here is to deploy the change and surface any unhandled
KafkaErrorsor other informational events that might be causing the batch consumer to shut down for no reason as was observed in an earlier smoke test.Once that is sorted out, we can integrate smarter batch decomposition and routing to processing pool, and a proper outgoing health check, and ship the new consumer 🚀
How did you test this code?
Locally, CI, and (soon) smoke test on live event stream
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Changelog: (features only) Is this feature complete?
No update required ✅