Event-Driven Trading Microservices Architecture
Built by Kuldeep Singh · Associate Principal Engineer · Fintech & Microservices Specialist
Trade Mesh is a production-grade microservices ecosystem for modern trading platforms — built with a focus on high throughput, low latency, and resilient event-driven design.
Here you'll find services covering:
- 📈 Order Management — Place, modify, cancel and track trade orders
- 💹 Market Data — Real-time price feeds and market event streaming
- ⚙️ Trade Execution — Order matching and execution engine
- 🔔 Notification Service — Alerts and trade confirmations
- 🛡️ Risk & Compliance — Pre-trade risk checks and audit trails
- 🌐 API Gateway — Unified entry point with OAuth 2.0 & JWT security
┌─────────────────┐
│ API Gateway │ ← Spring Cloud Gateway
│ OAuth 2.0/JWT │
└────────┬────────┘
│
┌──────────────────┼──────────────────┐
│ │ │
┌────────▼───────┐ ┌───────▼────────┐ ┌───────▼────────┐
│ Order Service │ │ Market Data Svc│ │Execution Engine│
│ Spring Boot │ │ Spring WebFlux │ │ Spring Boot │
└────────┬───────┘ └───────┬────────┘ └───────┬────────┘
│ │ │
└──────────────────┼──────────────────┘
│
┌────────▼────────┐
│ Apache Kafka │ ← Event Backbone
│ Event Streams │
└────────┬────────┘
│
┌──────────────────┼──────────────────┐
│ │ │
┌────────▼───────┐ ┌───────▼────────┐ ┌───────▼────────┐
│ Notification │ │ Risk & Compliance│ │ Audit Log │
│ Service │ │ Service │ │ Service │
└────────────────┘ └────────────────┘ └───────────────┘
| Repo | Description | Stack |
|---|---|---|
trade-mesh |
Monorepo — all microservices | Spring Boot, Kafka, WebFlux |
order-service |
Order lifecycle management | Spring Boot, JPA, Kafka |
market-data-service |
Real-time market data streaming | Spring WebFlux, Kafka |
execution-engine |
Trade matching & execution | Spring Boot, Kafka |
notification-service |
Trade alerts & confirmations | Spring Boot, Kafka |
api-gateway |
Unified gateway with auth | Spring Cloud Gateway, JWT |
Languages → Java 17+, Python
Backend → Spring Boot 3.x, Spring WebFlux, Apache Camel
Messaging → Apache Kafka, Kafka Streams
Security → OAuth 2.0, JWT
Data → PostgreSQL, Redis, Hibernate / JPA
DevOps → Docker, Kubernetes, GitHub Actions
Observability → Micrometer, Prometheus, Grafana
# Clone the monorepo
git clone https://github.com/trade-mesh/trade-mesh.git
cd trade-mesh
# Copy environment config
cp .env.example .env
# Spin up all services with Docker Compose
docker-compose up -dServices will be available at:
- API Gateway →
http://localhost:8080 - Kafka UI →
http://localhost:9090 - Grafana →
http://localhost:3000
- 🐙 GitHub
- 🧠 MicroMinds AI ← my AI & engineering org
- 📧 Open an issue on any repo for questions or collaboration
"In trading, milliseconds matter. In microservices, boundaries matter. Trade Mesh respects both."