Skip to content

Disconnect kafka consumers on sigterm#441

Open
nikossaravanos-workable wants to merge 1 commit intomasterfrom
kafka-sigterm
Open

Disconnect kafka consumers on sigterm#441
nikossaravanos-workable wants to merge 1 commit intomasterfrom
kafka-sigterm

Conversation

@nikossaravanos-workable
Copy link
Contributor

No description provided.

authenticationTimeout
});
const consumer = this.consumeClient.consumer({ groupId, ...rest });
this.consumers.set(groupId, consumer);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ could you elaborate please?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This map is used here handleSigterm.

In order to handle SIGTERM and signal all consumers to stop consuming messages, process the ongoing messages and commit the offsets we need to keep a reference to all consumers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants