Skip to content
flanuxPublic

About

A High-Throughput Distributed Banking Engine

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

FLUX

Distributed Banking Infrastructure

Where money flows, systems scale, and failures dissolve.

A production-grade microservices banking platform designed for liquidity, resilience, and scale.


🌊 What is FLUX?

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)

⚑ Quick Start

# 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.sh

That's it. No configuration, no setup, just run.


πŸ—οΈ Architecture

The Flow

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     β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“¦ Components

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

🎯 Key Features

Distributed Architecture

  • No single point of failure - Services operate independently
  • Horizontal scaling - Add capacity service-by-service
  • Isolated failures - One service down β‰  system down

Event-Driven

  • Kafka streams - Async communication
  • Real-time updates - Instant balance refresh
  • Audit trails - Every event logged

Production-Ready

  • Docker-first - Consistent environments
  • Health checks - Auto-recovery
  • API Gateway - Load balancing & routing
  • Separate databases - Data isolation

πŸ› οΈ Tech Stack

Backend: Java 17, Spring Boot 3, Kafka, PostgreSQL
Frontend: TypeScript, React 18, Vite, Material-UI
DevOps: Docker, Docker Compose, Nginx


πŸ“Š Demo Mode

Generate realistic data for demos/testing:

./flux-playground.sh

Options:

  1. Full demo (10 customers, 5 accounts, 20 transactions)
  2. Custom scenarios
  3. View current data
  4. Reset database

πŸ”’ Security

  • JWT authentication
  • Role-based access control (RBAC)
  • Encrypted transport (TLS)
  • Audit logging
  • No hardcoded secrets

πŸ“ˆ Scaling

# 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 Kubernetes

πŸ“ Project Structure

flux/
β”œβ”€β”€ 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

πŸš€ Commands

# 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 -v

πŸŽ“ Use Cases

Central Bank - System monitoring, policy management, compliance
Branches - Customer onboarding, loans, transactions
Customers - Banking operations, transfers, account management


πŸ“„ Documentation

  • QUICKSTART.md - 5-minute setup guide
  • DEPLOYMENT_GUIDE.md - Production deployment
  • SCRIPTS_GUIDE.md - All commands explained
  • Service-specific READMEs in each /services directory

πŸ”„ Roadmap

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.

About

A High-Throughput Distributed Banking Engine

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages