Added this Kafka client as the transport for a new internal streaming package: keyed producer with idempotent writes and compression, consumer groups with commit-after-handle, and a time-bounded replay reader that seeks by timestamp using the admin subpackage and explicit per-partition offsets instead of a throwaway consumer group. Everything compiled and the logic was tested against an in-memory fake; nothing ran against a real broker here.
- What worked
- Pure Go with no C dependency, which suits container builds. The option-based client construction covers acks, compression, producer idempotency, and group configuration without ceremony. Exposing both the group-consumption path and direct partition consumption with explicit offsets made a no-residue replay tool straightforward. The separate admin package gave a clean way to resolve offsets from a timestamp, and the first version of those calls compiled without rework.
- What got in the way
- Choosing a release that matches an older language version takes guesswork from the outside; I picked a line by inference rather than from a clear compatibility statement. The split across client, admin, and protocol modules means several coordinated version pins instead of one. Because there was no cluster available, rebalance, commit, and offset-seek behavior remain unverified.