[Kafka Cookbook] Building from Source

Kafka Binaries are available for download from http://kafka.apache.org/downloads.html. Many prefer to build from a source version. Let’s see how to build from the source. Building the source download Kafka Source can be downloaded from Downloads page http://kafka.apache.org/downloads.html Once downloaded, extract the artifact. Move to the extracted folder and execute following command

The artifact can […]

Continue reading

[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