INFRASTRUCTURE
CORE DOMAIN
SUPPORTING
GENERIC
/api/v1/auth /api/v1/chat /advisory/recommend /portfolio/holdings /portfolio/summary
Apache Kafka byld.identity.events byld.advisory.events byld.distribution.events byld.portfolio.events byld.payments.events byld.notifications.events
Event Bus byld.payments.mandate.events byld.sip.execution.events byld.estate.plan.events byld.insurance.events byld.notifications.email.events byld.notifications.push.events
🛡️
API Gateway
Rate limiting, JWT validation, request routing, circuit breaking
Spring Cloud Gateway Redis (sessions)
🧠
MIA (AI Engine)
Claude orchestration, tool routing, conversation state, RAG context
ConversationAggregate byld_mia (PG + Pinecone)
📈
Advisory
Risk profiling, goal planning, rebalancing engine, model portfolios
GoalAggregate byld_advisory (PG)
💼
Portfolio
Holdings tracker, P&L calculation, XIRR, asset allocation, CQRS read model
PortfolioAggregate byld_portfolio (PG + TimescaleDB)
👤
Identity
User registration, eKYC, PAN verification, biometric auth, RBAC
UserAggregate byld_identity (PG)
🏦
Distribution
MFU integration, SIP/STP/SWP execution, order management, CAN registry
OrderAggregate byld_distribution (PG)
📊
Markets
Equity/F&O routing, market data feeds, watchlists, research picks
TradeAggregate byld_markets (PG + Redis)
📜
Estate
eWill management, nominee registry, insurance orchestration, Willjini/Digit
EstatePlanAggregate byld_estate (PG)
💳
Payments
Razorpay integration, UPI mandates, eNACH, fee collection, settlement tracking
MandateAggregate byld_payments (PG)
🔔
Notifications
Push (FCM), SMS (MSG91), Email (SES), in-app notifications, template engine
NotificationAggregate byld_notifications (PG + Redis)
External (ACL)
🛡
MFU Central
ISO-20022 ACL
🔍
Finvu AA
ReBIT v2 ACL
💳
Razorpay
REST ACL
📊
NSE/BSE
WebSocket ACL
🧠
Claude API
SSE ACL
📜
Willjini
REST ACL
Infra
Core
Supporting
Generic
Sync REST
Async Kafka
Chris Richardson Patterns Applied
Database per Service (data sovereignty) | Saga Choreography (distributed transactions via Kafka) | CQRS (Portfolio read model on TimescaleDB) | API Gateway (single entry point + cross-cutting concerns) | Anti-Corruption Layer at every external boundary
-- Microservices Patterns (Richardson, 2018) | Building Microservices (Newman, 2021)