Back to Trending
RepositoryKotlinGBUnited Kingdom
perkss

perkss/kotlin-kafka-and-kafka-streams-examples

Kafka with KafkaReactor and Kafka Streams Examples in Kotlin

54stars
12forks
0issues
1views

Reactive Kotlin Kafka and Kafka Streams with Kotlin

Kafka and Kafka Stream Examples in Kotlin with Project Reactor Kafka

Please check out the blog posts for more details.

Building Locally

As the integration tests run with docker you are required to have docker running locally.

Then simply execute the maven command you wish.

mvn clean install

Docker Environment

Please use the docker-compose file in the root of each module project to create the Kafka Brokers and Zookeeper and where appropriate the Schema Registry.

Please check the directory README for details how to run this example.

Integration Tests

Integration tests can be found for each module project and these require Docker to be running and use Testcontainers these are powerful tests that fire up Kafka instances and our application and fully test the flow of messages through our streaming application.

Kafka Reactive Producer Consumer

This example shows how you can use the reactive API to build a consumer from a lowercase-topic map the data and output it with the same key to a uppercase-topic with the data converted to uppercase. Please check the sub module README for how to execute this. It is a very interesting yet simple example, as you can see when the consume is lazily instantiated when it connects and then once a message is received it lazily instantiates the producer to send on.

Kafka Reactive Secure Producer Consumer

Shows how you can run a secured broker cluster using TLS and a application that will will consume and produce with this secure transport layer to the brokers. Details can be found in the sub folder README.

Kafka Streams and Kotlin Examples

This module is for examples of using Kafka Streams with Kotlin and Avro. Here we build a stock ordering system that has the concept of customers to place orders. We use Avro to define schemas for the main topics and use changelog tables to store down product and customer information which is joined to the OrderRequests. This module depends on the Avro code generation in the avro-schemas module so that needs building before compiling this module.

Kafka Streams Examples

We also have a package for examples to show the following features found here.

  • Windowing
  • Aggregates
  • Joins

Similar Projects

Discover other similar projects and AI models.

RepositoryJava
schananas/practical-reactor

Practical Project Reactor and reactive programing workshop

487
Aug 16, 2024
RepositoryJava
reactor/reactor-addons

Additional optional modules for the Reactor project

245
Nov 26, 2026
RepositoryJavaScript
CyC2018/CS-Notes

:books: 技术面试必备基础知识、Leetcode、计算机操作系统、计算机网络、系统设计

186.6k
Nov 27, 2026
RepositoryKotlin
lysine-dev/okhttp

A meticulous HTTP client for the JVM, Android, and GraalVM.

47.1k
Nov 27, 2026
RepositoryKotlin
square/leakcanary

A memory leak detection library for Android.

30.0k
Nov 26, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
RepositoryJava
ReactiveX/RxJava

RxJava – Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.

48.1k
Nov 20, 2026
RepositoryJava
yuliskov/SmartTube

Browse media content with your own rules on Android TV

36.8k
Nov 29, 2026
RepositoryJava
apache/kafka

Apache Kafka - A distributed event streaming platform

34.3k
Nov 27, 2026