Architecture Overview
ClawFi is built as a modern, cloud-native banking platform with AI-first principles.
System Components
Core Services
Vault Service: Manages customer accounts and balances
Transaction Engine: Processes payments and transfers
Authorization Engine: Handles AI-powered decision making
Card Issuing Service: Manages virtual and physical cards
Webhook Service: Delivers real-time event notifications
Infrastructure
Database: PostgreSQL with read replicas
Cache: Redis for session and rate limiting
Message Queue: RabbitMQ for async processing
Storage: S3-compatible object storage
Architecture Principles
Microservices
Each service is independently deployable and scalable. Services communicate via REST APIs and message queues.
Event-Driven
All state changes emit events, enabling real-time notifications and audit trails.
AI-Native
The authorization engine uses LLMs to make intelligent decisions about transactions, fraud detection, and policy enforcement.
Data Flow
Client makes API request
API Gateway authenticates and routes request
Service processes request and emits events
Webhook service delivers notifications
Response returned to client
Security
All data encrypted at rest and in transit
Multi-tenant isolation at database level
Role-based access control (RBAC)
Audit logging for all operations
Scalability
Horizontal scaling of stateless services
Database sharding by tenant
CDN for static assets
Global edge deployment
Last updated