Skip to main content
grasp.study
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Spring Boot, Distributed Systems, DevOps
·
Module 7
Event-Driven Architecture with Kafka
1
Setting Up Kafka and Schema Registry with Docker Compose
Set up Apache Kafka and a schema registry locally using a Docker Compose file.
2
Designing a User Registered Event Schema
Design an event schema for a 'user registered' event and define it using a format like Avro or JSON Schema.
3
Publishing Registration Events with Kafka Producers
Implement a Kafka producer in the Auth service to publish an event upon successful user registration.
4
Consuming Kafka Messages with `@KafkaListener`
Implement a Kafka consumer in a separate service (e.g., Notifications) using `@KafkaListener` to process the event.
5
Idempotent Consumers for Event Processing
Implement an idempotent consumer to prevent duplicate processing of the same event.
Implementing a Dead Letter Queue (DLQ)
Configure a Dead Letter Queue (DLQ) to handle messages that repeatedly fail processing.
7
Kafka Command-Line Fundamentals
Use Kafka's command-line tools to manually inspect topics and debug message flow.
Previous module
Production-Grade API Security with Spring
Next module
Refactoring to a Microservices Architecture