Skip to content

devhammam95/microservices-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

30 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Microservices Patterns

A curated collection of Microservices Architecture Patterns, best practices, architecture diagrams, trade-offs, and interview questions.


🎯 Purpose

This repository serves as a practical reference for software engineers, solution architects, and technical leads who design and build distributed systems.

Each pattern includes:

  • βœ… Problem Statement
  • βœ… Solution
  • βœ… Architecture Diagram
  • βœ… Advantages & Disadvantages
  • βœ… Trade-offs
  • βœ… When to Use
  • βœ… When NOT to Use
  • βœ… Common Mistakes
  • βœ… Spring Boot Code Snippets
  • βœ… Interview Questions

Repository Structure

β”œβ”€β”€ communication/
β”œβ”€β”€ data/
β”œβ”€β”€ resilience/
β”œβ”€β”€ diagrams

Patterns

Communication

  • API Gateway
  • API Composition
  • Service Discovery
  • Messaging
  • Backend For Frontend

Data

  • Database Per Service
  • Saga
  • Saga - Choreography
  • Saga – Orchestration
  • Shared Database (anti-pattern)
  • Transactional Outbox Pattern
  • CQRS

Resilience

  • Circuit Breaker
  • Retry
  • Bulkhead

Contributing

Contributions are welcome!

If you'd like to improve documentation, diagrams, or examples, feel free to open a Pull Request.