This repository demonstrates various microservice design patterns using Spring Boot, Spring Cloud, and Java. It covers essential architectural patterns such as CQRS, API Gateway, Service Registry, Config Server, and more.
microservice-design-pattern/
βββ banking-microservices/ # Banking-related microservices architecture
βββ cqrs-ms-design/ # CQRS pattern with command & query separation
βββ ms-config-server/ # Centralized configuration using Spring Cloud Config
βββ ms-custom-registry/ # Custom-built service registry
βββ ms-gateway/ # API Gateway for routing & security
βββ ms-java-design/ # Common Java design patterns for microservices
βββ ms-registry-server/ # Eureka-based service registry
βββ .gitignore # Updated to exclude unnecessary files
βββ README.md # Documentation
- CQRS (Command Query Responsibility Segregation)
- Spring Cloud Gateway as an API Gateway
- Spring Cloud Config for Centralized Configuration
- Eureka Service Registry for Discovery
- Java 17+
- Maven
- Docker (will be added later)
-
Clone the repository:
git clone https://github.com/ps1437/microservice-design-pattern.git cd microservice-design-pattern
-
Build the projects:
mvn clean install
-
Run individual microservices:
mvn spring-boot:run
-
Use Docker Compose (if available) to spin up services:
docker-compose up -d
- Folder Restructure: Enhanced project organization.
- Updated
.gitignore
: Removed unnecessarytarget/
and.mvn/
folders. - Optimized Microservices Implementations.
Feel free to fork, clone, and submit PRs if you'd like to enhance the project! π
Happy coding! π»π