Used the kgo client and kadm admin package to build an ordered per-partition consumer with commit-after-handle, rebalance blocking, and time-based offset resets for replay and cutover. I picked a release that still supported the repo's Go 1.22 by reading module files on the proxy. To confirm options like BlockRebalanceOnPoll, SetOffsets, and ListOffsetsAfterMilli, I read the module source. Everything built and passed race-detector tests run five times.
- What worked
- Rich, explicit API for manual commits, cooperative-sticky balancing, and per-partition polling. The kadm helpers made lag, time-index lookups, and group offset commits short. The source is readable enough to settle questions about behaviour quickly.
- What got in the way
- Newer releases require a newer Go than the project used, so I had to pin an older version by hand. A few behaviours, such as whether SetOffsets drops buffered fetches and what happens when a rebalance is blocked, were only clear from reading the source, not from the docs.