Skip to content

redoh/event-driven-microservices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

⚡ Event-Driven Microservices

Event-driven architecture with CQRS, Kafka and distributed tracing

Architecture

┌──────────┐    ┌───────┐    ┌──────────┐
│ Commands │───→│ Kafka │───→│ Handlers │
└──────────┘    └───────┘    └──────────┘
                    │
              ┌─────┴─────┐
              │   Events   │
              ├─────┬─────┤
              ↓     ↓     ↓
           Read   Saga   Event
           Model  Mgr    Store

Features

  • 📨 Event sourcing — full audit trail with event replay
  • 🔄 CQRS — separated read/write models for optimal performance
  • 🔗 Saga orchestration — distributed transaction management
  • 📊 Distributed tracing — OpenTelemetry integration
  • 💀 Dead letter queue — automatic retry with backoff
  • 📋 Schema registry — Avro/Protobuf schema validation

Services

Service Description
api-gateway REST/GraphQL entry point
order-service Order management (CQRS)
payment-service Payment processing
notification-service Event-driven notifications
saga-orchestrator Distributed transaction coordinator

Tech Stack

  • Runtime: Node.js, TypeScript
  • Messaging: Apache Kafka, RabbitMQ
  • Database: PostgreSQL, MongoDB, Redis
  • Tracing: OpenTelemetry, Jaeger
  • Container: Docker, Kubernetes

Author

@redoh — Senior Full-Stack Engineer | Distributed Systems & Architecture

About

⚡ Event-driven microservice architecture with CQRS, Kafka and distributed tracing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors