Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

thepracticaldeveloper/kafka-spring-boot-example

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Kafka Example - The Practical Developer

Basic configuration

This sample application shows how to use basic Spring Boot configuration to set up a producer to a topic with multiple partitions and a consumer group with three different consumers.

The complete post with details is on The Practical Developer website: Spring Boot and Kafka - Practical Configuration Examples.

Kafka Configuration Example

Multiple serialization / deserialization formats

To illustrate the different configuration options, this application deserializes Kafka messages in three different ways:

  • As a JSON to Java object.
  • As a simple String (plain JSON).
  • As a byte array.

Docker compose

This code includes a docker-compose.yml file, so you can use Docker Compose to start up Kafka without installing anything.

Was it useful?

Give a star to this project, and consider some extra readings:

About

Spring Boot application showing basic configuration to work with Kafka

Topics

Resources

Stars

Watchers

Forks

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.