confluentinc / confluentinc/confluent-kafka-javascript

`kafkajs` API differences: `on`, `events`, `Partitioners`

Open
#241 7 comments 9 reactions 0 assignees View on GitHub
documentation
Dominant language
TypeScript
Stars
304
Forks
45
Avg merge
11h 47m
Merged PRs (30d)
5

Description

Following [MIGRATION.md](https://github.com/confluentinc/confluent-kafka-javascript/blob/master/MIGRATION.md), I notice at least these differences from the `kafkajs` API which are not documented there. Feel free to close if you are not planning to implement a fully compatible API.

1. `producer.on` is absent (to register for producer events)
2. `producer.events` is absent (I'm using `producer.events.CONNECT`, `producer.events.DISCONNECT`, `producer.events.REQUEST_TIMEOUT`)
3. `Partitioners` export is absent (I'm using `Partitioners.DefaultPartitioner`)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.