Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kafka Stream API vs Consumer API

I need to read from a specific Kafka topic, do a VERY short processing on the message and pass it on to a different Kafka cluster.

Currently, I'm using a consumer that's also a producer on the other kafka server.

However, the streaming API supposedly offers a more light-weight high-throughput option.

So the questions are:

  • Assuming my processing code doesn't require much horse power, is the streaming API better?
  • Does the streaming APi support writing to a different Kafka cluster?
  • What are the Streaming API cons comparing to the Consumer API?
like image 514
sternr Avatar asked Jan 16 '17 08:01

sternr


People also ask

What is the difference between Kafka and Kafka Streams?

Introduction. Apache Kafka is the most popular open-source distributed and fault-tolerant stream processing system. Kafka Consumer provides the basic functionalities to handle messages. Kafka Streams also provides real-time stream processing on top of the Kafka Consumer client.

What is Kafka stream API?

Kafka Streams is a client library for building applications and microservices, where the input and output data are stored in an Apache Kafka® cluster. It combines the simplicity of writing and deploying standard Java and Scala applications on the client side with the benefits of Kafka's server-side cluster technology.

Is a Kafka consumer an API?

The Kafka Producer API allows applications to send streams of data to the Kafka cluster. The Kafka Consumer API allows applications to read streams of data from the cluster.

Is Kafka streaming consumer?

An application that uses the Kafka Streams API acts as both a producer and a consumer. The data: Data is stored in topics. The topic is the most important abstraction provided by Kafka: it is a category or feed name to which data is published by producers. Every topic in Kafka is split into one or more partitions.


1 Answers

Unfortunately KafkaStreams doesn't currently support writing to a different Kafka cluster.

like image 90
Damian Guy Avatar answered Nov 10 '22 01:11

Damian Guy