Reputation: 47
I'm coding a solution for a data consumer to a kafka cluster (using dockers for kafka), but I still have to decide how to code it:
The point is that I know how to code a solution in both languages, but I have to decide in which one having to take into account:
This is for a ubuntu server, on a full dockerized environment, I use Node.js as a core language for web services and connecting modules. I'm still not tunning the kafka client, but using the default options:
import org.apache.kafka.clients.consumer.KafkaConsumer;
...
props = ...
KafkaConsumer consumer = new KafkaConsumer<>(props);
var kafka = require('kafka-node');
...
client = ....
var consumer = new kafka.Consumer( client, [{ topic: 'topicVehicle' }], { autoCommit: true });
I have to deal with the problem of maintaining the code at various layers in various languages (java, nodejs... probably python) and I'm wondering which is the more proper solution.
Upvotes: 0
Views: 739
Reputation: 4064
My take is that you would not want to create your Kafka consumer as a Kafka plugin for a few reasons:
other reasons:
Now, if you are developing some new type of Connector or another consumer that is really intended to be more like a framework/tool that will be used by other consumers/producers - it would make sense to develop it as a plugin for Kafka
Upvotes: 2