This project implements a Polling Publisher-Subscriber system using Spring Boot and Apache Kafka. It consists of two microservices:
- Publisher Service → Periodically polls a data source and publishes updates via Kafka.
- Subscriber Service → Listens to Kafka for updates and processes them.
polling-publisher-subscriber/
│️— pom.xml (Parent POM)
│️— README.md (This file)
│
├── polling-service/
│ ├── src/main/java/com/iluwatar/polling/
│ ├── src/main/resources/application.yml
│ ├── pom.xml
│ └── README.md (Polling-specific documentation)
│
├── subscriber-service/
│ ├── src/main/java/com/iluwatar/subscriber/
│ ├── src/main/resources/application.yml
│ ├── pom.xml
│ └── README.md (Subscriber-specific documentation)
- Spring Boot (Microservices)
- Apache Kafka (Messaging)
- Maven (Build Tool)
If you don’t have Kafka installed, use Docker:
docker-compose up -d
mvn clean install
mvn spring-boot:run