Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kafka connect or Kafka Client

I need to fetch messages from Kafka topics and notify other systems via HTTP based APIs. That is, get message from topic, map to the 3rd party APIs and invoke them. I intend to write a Kafka Sink Connector for this.

For this use case, is Kafka Connect the right choice or I should go with Kafka Client.

like image 306
bhalochele Avatar asked Nov 20 '16 10:11

bhalochele


1 Answers

Kafka Connect will work well for this purpose, but this would also be a pretty straightforward consumer application as well because consumers also have the benefits of fault tolerance/scalability and in this case you're probably just doing simple message-at-a-time processing within each consumer instance. You can also easily use enable.auto.commit for this application, so you will not encounter the tricky parts of using the consumer directly. The main thing using Kafka Connect would give you compared to using the consumer in this case would be that the connector could be made generic for different input formats, but that may not be important to you for a custom connector.

like image 72
Ewen Cheslack-Postava Avatar answered Sep 29 '22 02:09

Ewen Cheslack-Postava