How lovishgupta2004/kafka-notification works
This Spring Boot application accepts notification requests over REST, routes EMAIL and WHATSAPP messages to different partitions of the Kafka notifications topic, and consumes topic messages in the notification-group consumer group. The producer is the internal routing layer; the consumer currently prints received messages. Kafka topics, partitions, independent consumer groups, and rebalancing are documented capabilities. Source excerpts show the REST-to-producer call and Kafka send; the README documents Kafka delivery to the listener. The application bootstrap is included, but its runtime wiring is not expanded beyond what the evidence supports.
Main entry points: NotificationController.java Notification Endpoint · NotificationProducer.java Partition Router · KafkaNotificationApplication.java Spring Boot Entry · NotificationConsumer.java Notification Consumer
Components 6
REST API
- Notification Endpoint
src/main/java/com/lovish/kafka_notification/Controller/NotificationController.java
Kafka Messaging
- Partition Router
src/main/java/com/lovish/kafka_notification/Service/NotificationProducer.java - Kafka Broker
- Notification Consumer
src/main/java/com/lovish/kafka_notification/Service/NotificationConsumer.java
Application Runtime
- Spring Boot Entry
src/main/java/com/lovish/kafka_notification/KafkaNotificationApplication.java
Other components
- API Caller
Connections 5
- API Caller → Notification Endpoint: POST request
README.md - Notification Endpoint → Partition Router: sends notification
src/main/java/com/lovish/kafka_notification/Controller/NotificationController.java - Partition Router → Kafka Broker: publishes by type
src/main/java/com/lovish/kafka_notification/Service/NotificationProducer.java - Kafka Broker → Notification Consumer: delivers messages
README.md - Spring Boot Entry → Notification Endpoint: starts runtime