Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kafka-node vs kafkajs Producer #1394

Closed
harshagarwal00 opened this issue Jun 15, 2022 · 1 comment
Closed

Kafka-node vs kafkajs Producer #1394

harshagarwal00 opened this issue Jun 15, 2022 · 1 comment

Comments

@harshagarwal00
Copy link

I am confused if to use kafkajs producer or Kafka-node producer..
Configuring kafka-node producer seems very easy.. just very small code..
kafkajs seems more involved..
https://kafka.js.org/docs/producer-example
catching all these signals:

const errorTypes = ['unhandledRejection', 'uncaughtException']
const signalTraps = ['SIGTERM', 'SIGINT', 'SIGUSR2']
@Nevon
Copy link
Collaborator

Nevon commented Jun 27, 2022

You haven't shown any comparison, but the signal handling is there as a reference for how to cleanly shut down. You would need to do the exact same thing in kafka-node - they might just not have included shutting down in their examples.

Closing this as it is not an issue.

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

No branches or pull requests

2 participants