Where money flows, systems scale, and failures dissolve.
A production-grade microservices banking platform designed for liquidity, resilience, and scale.
FLUX is a distributed core banking system that treats financial transactions as flow - continuous, unstoppable, and failure-proof. Built on microservices architecture, FLUX ensures that money moves through the system like water through channels, with zero single points of failure.
In physics and finance, flux represents the rate of flow through a system. FLUX embodies this principle through:
- 8 independent microservices (the channels)
- 3-tier access control (Central Bank β Branch β Customer)
- Event-driven architecture (Kafka streams)
- Unidirectional data flow (predictable, debuggable)
# 1. Start FLUX
./flux-start.sh
# 2. Access portals
open http://localhost:3000 # Customer
open http://localhost:3001 # Branch
open http://localhost:3002 # Central Bank
# 3. Generate demo data
./flux-playground.shThat's it. No configuration, no setup, just run.
Central Bank (3002) ββββββ
β
Branch Dashboards (3001) ββββΊ API Gateway (8089)
β β
Customer Portals (3000) ββ β
β
ββββββββββββββββββ΄βββββββββββββββββ
β β
βββββββββββββΌβββββββββββ βββββββββββββΌβββββββββββ
β Core Services β β Support Services β
β β’ Account (8081) β β β’ Ledger (8084) β
β β’ Customer (8082) β β β’ Reporting (8086) β
β β’ Card (8083) β β β’ Notify (8085) β
β β’ Loan (8087) β β β
β β’ Transaction(8088) β β β
ββββββββββββ¬ββββββββββββ ββββββββββββ¬ββββββββββββ
β β
ββββββββββββββ¬ββββββββββββββββββββ
β
βββββββββββββΌβββββββββββ
β PostgreSQL (5432) β
β 8 isolated DBs β
ββββββββββββββββββββββββ
ββββββββββββββββββββββββ
β Kafka + Zookeeper β
β Event Streams β
ββββββββββββββββββββββββ
| Type | Component | Port | Purpose |
|---|---|---|---|
| Portal | Customer Portal | 3000 | End-user banking |
| Portal | Branch Dashboard | 3001 | Branch operations |
| Portal | Central Bank Portal | 3002 | System oversight |
| Gateway | API Gateway | 8089 | Single entry point |
| Service | Account | 8081 | Account management |
| Service | Customer | 8082 | Customer data |
| Service | Card | 8083 | Card operations |
| Service | Ledger | 8084 | Double-entry ledger |
| Service | Notification | 8085 | Alerts & messages |
| Service | Reporting | 8086 | Analytics |
| Service | Loan | 8087 | Loan processing |
| Service | Transaction | 8088 | Payments |
| Database | PostgreSQL | 5432 | Data persistence |
| Message | Kafka | 9092 | Event streaming |
- No single point of failure - Services operate independently
- Horizontal scaling - Add capacity service-by-service
- Isolated failures - One service down β system down
- Kafka streams - Async communication
- Real-time updates - Instant balance refresh
- Audit trails - Every event logged
- Docker-first - Consistent environments
- Health checks - Auto-recovery
- API Gateway - Load balancing & routing
- Separate databases - Data isolation
Backend: Java 17, Spring Boot 3, Kafka, PostgreSQL
Frontend: TypeScript, React 18, Vite, Material-UI
DevOps: Docker, Docker Compose, Nginx
Generate realistic data for demos/testing:
./flux-playground.shOptions:
- Full demo (10 customers, 5 accounts, 20 transactions)
- Custom scenarios
- View current data
- Reset database
- JWT authentication
- Role-based access control (RBAC)
- Encrypted transport (TLS)
- Audit logging
- No hardcoded secrets
# Scale individual services
docker compose up -d --scale account-service=3
docker compose up -d --scale transaction-service=5
# Add database replicas (production)
# Add cache layer (Redis)
# Deploy to Kubernetesflux/
βββ services/ # 8 microservices
βββ frontends/ # 3 portals
βββ bank-api-gateway/ # Gateway
βββ database/ # DB scripts
βββ message-broker/ # Kafka configs
βββ docker-compose.yml # Orchestration
βββ flux-start.sh # Startup
βββ flux-playground.sh # Demo data
# Start system
./flux-start.sh
# Check status
docker compose ps
# View logs
docker compose logs -f
# Stop system
docker compose down
# Reset data
docker compose down -vCentral Bank - System monitoring, policy management, compliance
Branches - Customer onboarding, loans, transactions
Customers - Banking operations, transfers, account management
QUICKSTART.md- 5-minute setup guideDEPLOYMENT_GUIDE.md- Production deploymentSCRIPTS_GUIDE.md- All commands explained- Service-specific READMEs in each
/servicesdirectory
Current: Core banking microservices, 3 portals, Docker deployment
Next: Kubernetes, CI/CD, monitoring (Prometheus/Grafana)
Future: Multi-tenancy, mobile apps, AI fraud detection
FLUX - Distributed banking infrastructure for the modern era.
Built with Spring Boot, React, and a relentless focus on flow.