August 2017
Beginner to intermediate
278 pages
6h 40m
English
We have covered different configurations and APIs in previous sections. Let's start coding one simple Java producer, which will help you create your own Kafka producer.
Prerequisite
<dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka_2.11</artifactId> <version>0.10.0.0</version></dependency>
Java:
import java.util.Properties;import java.util.concurrent.Future;import org.apache.kafka.clients.producer.KafkaProducer; ...
Read now
Unlock full access