[Kafka Cookbook] Simple Consumer

In the last post we saw Simple Producer, now let’s take a look at a Simple Consumer. Please refer Simple Producer for Pre-conditions. Jumping to next step, lets quickly look at the code.

Let’s look at the configuration options. We won’t dig deeper into them as of now Here we have to provide additional […]

Continue reading

[Kafka Cookboook] Simple Producer

Now that we have completed a Quick Start, let’s see how to write a basic Java Producer for Kafka. Pre-Conditions Kafka setup is up and running (including Zookeeper) If you are using Maven, here are the needed dependencies

The producer is going to be simple, which would just be in a loop and send […]

Continue reading