Member-only story
The 5 Major APIs in Apache Kafka
There are five major APIs in Kafka:
Producer API — Permits an application to publish streams of records
In order to publish a stream of records to one or more Kafka topics, the Producer API allows an application.
Consumer API — Permits an application to subscribe to topics and processes streams of records.
This API permits an application to subscribe to one or more topics and also to process the stream of records produced to them.
Connector API — Executes the reusable producer and consumer APIs that can link the topics to the existing applications.
Moreover, to act as a stream processor, consuming an input stream from one or more topics and producing an output stream to one or more output topics, effectively transforming the input streams to output streams, the streams API permits an application.
Streams API — This API converts the input streams to output and produces the result.
While it comes to building and running reusable producers or consumers that connect Kafka topics to existing applications or data systems, we use the Connector API. For example, a connector to a relational database might capture every change to a table.
Admin API — used to manage Kafka topics, brokers and other Kafka objects.