Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 21 – Kafka & Kafka Streams

Similar presentations


Presentation on theme: "Lecture 21 – Kafka & Kafka Streams"— Presentation transcript:

1 Lecture 21 – Kafka & Kafka Streams
11/27/2017 Weds: Project / Lab discussions & quiz review

2 Sample producer code producer = new Producer(...);
message = new Message(“test message str”.getBytes()); set = new MessageSet(message); producer.send(“topic1”, set);

3 Sample consumer code streams[] = Consumer.createMessageStreams(“topic1”, 1) for (message : streams[0]) { bytes = message.payload(); // do something with the bytes }

4 Kafka Architecture

5 Kafka log Structure for a partition of a topic

6 With and Without Kafka Streams


Download ppt "Lecture 21 – Kafka & Kafka Streams"

Similar presentations


Ads by Google