┌─────────────────────────────────────────────────────────────────┐
│ RMS Platform+AML Architecture │
└─────────────────────────────────────────────────────────────────┘
User Interface
│
▼
┌─────────────────────────┐
│ Frontend (Flask) │
│ Port: 58888 │
└─────────────────────────┘
│
▼
┌─────────────────────────┐
│ Backend API (FastAPI) │
│ Port: 58001 │
└─────────────────────────┘
│
┌───────────────────┼────────────────────┐
│ │ │
▼ ▼ ▼
┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐
│ Authentication │ │ Data Stores │ │ Notifications │
├──────────────────┤ ├──────────────────┤ ├──────────────────┤
│ • Active │ │ • PostgreSQL │ │ • Email (SMTP) │
│ Directory │ │ • Redis Cache │ │ • SMS Gateway │
│ • JWT Tokens │ │ • ClickHouse │ │ • Push Notify │
└──────────────────┘ └──────────────────┘ └──────────────────┘
│ │ │
└───────────────────┼────────────────────┘
│
┌───────────────────┼────────────────────┐
│ │ │
▼ ▼ ▼
┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐
│ ERP Systems │ │ Analytics │ │ Security │
├──────────────────┤ ├──────────────────┤ ├──────────────────┤
│ • Oracle ERP │ │ • Reporting │ │ • Audit Logs │
│ • CRM System │ │ • ClickHouse │ │ • RBAC │
│ • HR System │ │ • ML Models │ │ • Encryption │
└──────────────────┘ └──────────────────┘ └──────────────────┘
Data Flow: Real-time & Batch
Security: JWT + RBAC + SSL/TLS
Monitoring: Health Checks + Logs