https://github.com/mildredzarv/hola-kafka
Kafka Producer-Consumer Demo with Avro Serialization and Spring Boot (Dockerized)
https://github.com/mildredzarv/hola-kafka
avro-schema-registry avro-serialization docker-compose kafka-consumer kafka-producer spring
Last synced: 3 months ago
JSON representation
Kafka Producer-Consumer Demo with Avro Serialization and Spring Boot (Dockerized)
- Host: GitHub
- URL: https://github.com/mildredzarv/hola-kafka
- Owner: MildredZarv
- Created: 2025-03-11T20:00:12.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-11T22:10:19.000Z (over 1 year ago)
- Last Synced: 2025-07-18T10:51:20.973Z (11 months ago)
- Topics: avro-schema-registry, avro-serialization, docker-compose, kafka-consumer, kafka-producer, spring
- Language: Java
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Architecture Overview:
Producer Application:
A Spring Boot application that sends serialized messages (in Avro format) to a Kafka topic.
Utilizes the KafkaAvroSerializer to serialize data based on an Avro schema.
Consumer Application:
A Spring Boot application that consumes messages from the Kafka topic, deserializes them using Avro, and processes the data.
Utilizes KafkaAvroDeserializer to deserialize the data into a strongly typed object.
Kafka:
Acts as the message broker that facilitates communication between the producer and consumer.
Schema Registry:
A service provided by Confluent that stores Avro schemas and ensures the compatibility of data between the producer and consumer.
Docker:
The Kafka broker, Zookeeper, Schema Registry, and both Spring Boot applications (producer and consumer) are containerized using Docker to ensure easy deployment and environment parity across development, staging, and production.
- Command to bring up Docker containers: docker compose up -d