Confluent Cloud continues to evolve its integration capabilities for HTTP and REST APIs with Kafka, focusing on enhancing the HTTP Source V2 and HTTP Sink V2 connectors. These connectors now support configuring multiple APIs with the same hostname and authorization, seamless integration with OpenAPI Specification 3.0, API testing during configuration, offset management, and client-side field-level encryption. The HTTP Sink V2 also allows specifying Kafka record fields in the URL, parameters, and headers. This post details the creation of a node.js wrapper for the Kafka REST Proxy, demonstrating how to build applications by exposing Kafka functionality through HTTP. It highlights improvements in the produce API for handling various message formats and serialization, and a more native Node.js-like consumer API using event emitters. An example application is provided that streams Twitter data into Kafka and processes trending topics.
All Confluent trails