Skip to content

dharmendra9847/spring-microservices

Repository files navigation

🏗️ Microservices Architecture Project

📌 Overview

This project demonstrates a real-world Microservices Architecture using Spring Boot and Spring Cloud. Each service is independently deployable and communicates via REST APIs.


🧩 Microservices Included

  • 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

⚙️ Tech Stack

  • Java 17
  • Spring Boot
  • Spring Cloud
  • Eureka Server
  • API Gateway
  • Spring Data JPA
  • Hibernate
  • MySQL
  • REST APIs
  • Maven
  • Lombok
  • Postman

📁 Project Structure

microservices-project/
│
├── api-gateway/
├── service-registry/
├── config-server/
├── account-service/
├── employee-service/
├── plot-service/
│
└── README.md

🔗 Architecture Flow

  1. Client sends request to API Gateway
  2. Gateway routes request to respective service
  3. Services register with Eureka Server
  4. Config Server manages configurations
  5. Services communicate via REST APIs

▶️ How to Run

  1. Start Service Registry (Eureka Server)
  2. Start Config Server
  3. Start all Microservices
  4. Start API Gateway

📬 API Testing

Use Postman or any REST client:

Example:

GET /api/accounts
POST /api/users

🎯 Key Features

  • Scalable architecture
  • Service discovery using Eureka
  • Centralized configuration
  • API Gateway routing
  • Independent deployment

👨‍💻 Author

Dharmendra Kumar Java Backend Developer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages