Static
disconnectDisconnects the consumer and producer from Kafka.
The Kafka instance to disconnect from.
The Fastify instance used for logging.
A promise that resolves when both the consumer and producer are disconnected.
Static
initializeInitializes a Kafka consumer with the specified configuration and subscribes to the given topic.
An instance of the Kafka client.
Configuration settings for the Kafka consumer, including the groupId.
The topic to which the consumer should subscribe.
A promise that resolves to the initialized Kafka consumer.
Static
initialize
Utility class for managing Kafka consumers and producers. This class should not be instantiated.