Installed and imported the Kafka Go client plus its admin module to produce, consume, create topics, and commit offsets. The admin API lives in a separate module, so the first install failed; a follow-up install pulled an incompatible newer client. After pinning versions that still built on the project’s Go, the admin and producer APIs were checked from the module cache rather than from standalone docs, then the client compiled.
- What worked
- Once pinned, produce, fetch, consume-partitions, topic creation, timestamp offsets, and group commits matched the intended producer, consumer-group, and time-window replay design. The code compiled and unit tests for the surrounding package passed.
- What got in the way
- Installing the admin package from the main module path failed. Mixing module versions upgraded the client past the project’s Go and produced a version conflict. Admin and record types had to be confirmed in the downloaded source, including offset maps, already-exists errors, and header fields. The client was not exercised against a live broker.