A deep dive into the microservices architecture powering institutional-grade exchanges
API gateway for TLS termination, request routing, and rate limiting — the single edge entry to exchange APIs.
Authentication gateway handling JWT tokens (RS256), user sessions, KYC workflows, role-based access control (Casbin), 2FA, and comprehensive user management.
High-frequency trading engine with order matching for limit, market, and stop orders. Balance ledgers, fee application, candles via InfluxDB, and real-time order books.
HD wallet generation and multi-chain address management. Private key storage via HashiCorp Vault, balance tracking, withdrawal approvals, and destination whitelist secured by 2FA then email OTP (via Hermes).
Blockchain monitoring for deposits and withdrawals across EVM, UTXO, and Solana networks — sweeps, mempool watching, and on-chain ops.
Multi-channel notifications. Email OTP for whitelist verification, templates, delivery tracking, Kafka consumers. SMTP in production; MailHog for UAT.
Real-time WebSocket feeds delivering order book updates, trade streams, ticker data, user balance changes, and admin system events.
Compliance and KYC archival — identity verification workflows, retention policies, and regulatory reporting hooks.
HashiCorp Vault integration for cryptographic key generation, automatic key rotation, encryption services, and AppRole authentication.
Operator admin panel: users, markets, fees, deposits/withdrawals, withdrawal whitelist revoke, custody, treasury, and system health — Casbin RBAC throughout.
Immutable audit logging with cryptographic hash chain verification. gRPC interface for tamper-proof recording of all critical system operations.
Real-time fiat/crypto exchange rate aggregation from multiple sources (CoinGecko, CryptoCompare). Multi-source validation and caching.
User-facing exchange UI: trading, wallets, deposits/withdrawals, 2FA setup, and multi-step whitelist verification.
Admin API gateway that authenticates operators and proxies Poseidon, Apollo, Argos, Hermes, and fee-service under `/api/v1/admin/*`.
Treasury and revenue visibility — fee collection stats, platform balances, and financial summaries for operators.
Maker/taker fee tiers, pair overrides, and user tier assignments used by Apollo during matching and settlement.
Platform analytics and reporting pipelines that feed operational dashboards and trading insights.
Each microservice owns its database, ensuring data isolation, independent scaling, and technology flexibility. No shared databases, no tight coupling.
Apache Kafka enables asynchronous communication between services. Events are published once and consumed by multiple services, ensuring loose coupling and scalability.
Every service-to-service call is authenticated using HMAC-SHA256. No implicit trust. JWT tokens for user authentication with RS256 signing.
Prometheus metrics, Grafana dashboards, Jaeger distributed tracing, and structured logging with correlation IDs across all services.
Envoy handles TLS termination, rate limiting, and request routing. Single edge entry point for exchange API traffic.
Docker containers, versioned database migrations (Goose), infrastructure as code. No manual server configuration.
Schedule a technical deep-dive with our engineering team