
7/11/2024 · Lucia Cerchie
What this post added
Introduces and demonstrates the use of the confluent-kafka-javascript client, a new library for interacting with Apache Kafka and Confluent Platform. The post details how to use the client for producing messages with manual offset commits and consuming messages, including handling the last clicked state and emitting updates via WebSockets. It showcases the client's two API styles: one based on node-rdkafka and a promisified API similar to KafkaJS. The example application built is a real-time voting app to settle the tabs vs. spaces debate.