Skip to content

Conversation

@eli-r-ph
Copy link
Contributor

Problem

Before fully replacing the StatefulConsumer we want to smoke test the BatchConsumer on live event stream.

Changes

Just enough refactor to get the BatchConsumer running in production. Due to MessageProcessor trait 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 KafkaErrors or 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 ✅

@eli-r-ph eli-r-ph self-assigned this Oct 31, 2025
@eli-r-ph eli-r-ph requested a review from a team October 31, 2025 21:26
branches:
- 'master'
- 'eli.r/kdedup-batch-consumer-inst-1'

Copy link
Contributor Author

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>>,
}
Copy link
Contributor Author

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() 👍

@eli-r-ph eli-r-ph marked this pull request as ready for review October 31, 2025 21:39
Copy link
Contributor

@greptile-apps greptile-apps bot left a 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

Edit Code Review Agent Settings | Greptile

@eli-r-ph eli-r-ph force-pushed the eli.r/kdedup-batch-consumer-inst-1 branch from 9ac0101 to c9ef324 Compare October 31, 2025 22:42
@eli-r-ph eli-r-ph force-pushed the eli.r/kdedup-batch-consumer-inst-1 branch from 2307e0e to c9f4637 Compare October 31, 2025 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants