This project demonstrates a real-world Microservices Architecture using Spring Boot and Spring Cloud. Each service is independently deployable and communicates via REST APIs.
- API Gateway – Central entry point
- Service Registry (Eureka Server) – Service discovery
- Config Server – Centralized configuration
- Account Service – Handles account operations
- Employee Service – Manages user data
- Plot Service – Example domain service
- Java 17
- Spring Boot
- Spring Cloud
- Eureka Server
- API Gateway
- Spring Data JPA
- Hibernate
- MySQL
- REST APIs
- Maven
- Lombok
- Postman
microservices-project/
│
├── api-gateway/
├── service-registry/
├── config-server/
├── account-service/
├── employee-service/
├── plot-service/
│
└── README.md
- Client sends request to API Gateway
- Gateway routes request to respective service
- Services register with Eureka Server
- Config Server manages configurations
- Services communicate via REST APIs
- Start Service Registry (Eureka Server)
- Start Config Server
- Start all Microservices
- Start API Gateway
Use Postman or any REST client:
Example:
GET /api/accounts
POST /api/users
- Scalable architecture
- Service discovery using Eureka
- Centralized configuration
- API Gateway routing
- Independent deployment
Dharmendra Kumar Java Backend Developer