Added KafkaJS 2.2.4 and implemented a buffered producer and an indexer consumer from the package's TypeScript definitions, using an existing install in another service as the reference. Subscribe with a topics array, record headers, and key-based partitioning were clear from those types. The client was never connected to a broker, so delivery, reconnect, and rebalance behavior were not observed.
- What worked
- The typed producer and consumer APIs covered partitioned reservation and SKU events, including the header names already used elsewhere in the repo, without an extra wrapper.