Freigent is built on a modern, scalable architecture designed to handle high-volume freight operations while maintaining performance and reliability.
System Overview
Core Components
API Gateway
- Rate limiting and authentication
- Request routing and load balancing
- API versioning and deprecation management
Load Management Service
- Load creation and lifecycle management
- Carrier matching algorithms
- Rate calculations and optimization
Tracking Service
- Real-time GPS tracking
- Status updates and notifications
- ETA calculations and route optimization
User Management
- Authentication and authorization
- Role-based access control (RBAC)
- Multi-tenant organization support
Technology Stack
Backend Infrastructure
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ React Web │ │ Chrome Extension│ │ Mobile Apps │
│ Frontend │ │ (DAT Auto) │ │ (iOS/Android) │
└─────────────────┘ └─────────────────┘ └─────────────────┘
│ │ │
└───────────────────────┼───────────────────────┘
│
┌─────────────────┐
│ API Gateway │
│ (Rate Limiting)│
└─────────────────┘
│
┌───────────────────────┼───────────────────────┐
│ │ │
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Load Service │ │ Tracking Service│ │ User Service │
│ (Core Logic) │ │ (GPS & Updates) │ │ (Auth & RBAC) │
└─────────────────┘ └─────────────────┘ └─────────────────┘
│ │ │
└───────────────────────┼───────────────────────┘
│
┌─────────────────┐
│ PostgreSQL │
│ (Primary DB) │
└─────────────────┘
Database Design
PostgreSQL - Primary database for transactional data
- Load records and status tracking
- User accounts and permissions
- Financial transactions and billing
Redis - Caching and session management
- API response caching
- Real-time tracking data
- Session storage
Supabase - Development and deployment platform
- Database hosting and management
- Real-time subscriptions
- Edge function deployment
Security & Compliance
Data Protection
Encryption
- TLS 1.3 for data in transit
- AES-256 encryption for data at rest
- Key rotation and management
Access Control
- Multi-factor authentication (MFA)
- Role-based access control (RBAC)
- Audit logging and monitoring
Scalability & Performance
Horizontal Scaling
Load Balancing
- Application load balancers
- Database connection pooling
- CDN for static assets
Performance Optimization
- Redis for frequently accessed data
- CDN for static content
- Application-level caching