Confluent Developer ft. Tim Berglund, Adi Polak & Viktor Gamov cover image

Common Apache Kafka Mistakes to Avoid

Confluent Developer ft. Tim Berglund, Adi Polak & Viktor Gamov

00:00

How to Commit Multiple Offsets at the Same Time

The only downside is you can't batch up requests into a sync, right? You're kind of stuck with the one at a time because if we try to batch it, then that kind of removes the point of trying to commit like a high watermark. So your solution is to try and consume several records before you try and commit the offsets. Yeah, I try to find a balancing act. Typically, we like to do either a count threshold or a time threshold of records. Doing it on a time boundary tends to come a little more second nature thought to it.

Play episode from 45:55
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app