This repository demonstrates a Proof-of-Concept (POC) microservices architecture using Apache Kafka as the backbone for asynchronous communication between services. The project leverages Spring Boot for rapid microservice development, integrates with Cassandra for data storage, and uses RestTemplate for synchronous HTTP interactions.
- Microservices communication via Apache Kafka
- Built with Spring Boot
- Data persistence with Cassandra
- RESTful endpoints using RestTemplate
- Java
- Spring Boot
- Apache Kafka
- Cassandra
- RestTemplate
- Java (JDK 8 or higher)
- Apache Kafka
- Cassandra
- Maven
-
Clone the repository:
git clone https://github.com/Saurabhsds13/java-microservices-kafka.git cd java-microservices-kafka -
Configure Kafka and Cassandra as per your environment.
-
Build the project:
mvn clean install
-
Start each microservice (replace
<service-directory>with actual service directories):cd <service-directory> mvn spring-boot:run
- Ensure Kafka and Cassandra are running.
- Start all microservices as described above.
- Each service exposes REST endpoints; you can interact with them using tools like Postman or curl.
- Microservices communicate asynchronously via Kafka topics.
- Synchronous REST calls are made using RestTemplate.
- Data is persisted in Cassandra.
This project is a personal POC and is not currently accepting external contributions.
- Saurabhsds13
Feel free to customize this README with more details about each microservice, environment variables, or usage examples as needed!