Skip to content

devhammam95/microservices-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 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/
├── deployment/
├── 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

Deployment

  • Sidecar

Contributing

Contributions are welcome!

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