System Architecture Enterprise
Complete system design and technical architecture for enterprise deployments.
System Architecture
High-Level Components
┌─────────────────────────────────────────────────────────────┐
│ Delegated Platform │
├─────────────────────────────────────────────────────────────┤
│ Frontend: dashboard.delegated.nl │
│ ├── Next.js 15 (React 18) │
│ ├── Tailwind CSS + shadcn/ui │
│ ├── Auth0 SSO + RBAC │
│ └── Real-time WebSocket updates │
├─────────────────────────────────────────────────────────────┤
│ Backend: PHP 8.3 + Node.js 22 │
│ ├── REST API (70+ endpoints) │
│ ├── WebSocket server (real-time updates) │
│ ├── Cron scheduler (task orchestration) │
│ ├── Queue system (Redis-backed) │
│ └── File processing (image/document handling) │
├─────────────────────────────────────────────────────────────┤
│ Database: MySQL 8.0 │
│ ├── 35+ tables (normalized design) │
│ ├── Full ACID compliance │
│ ├── Automated backups (3x daily) │
│ └── Read replicas for analytics │
├─────────────────────────────────────────────────────────────┤
│ AI Orchestration: Paperclip v2 │
│ ├── Multi-LLM routing (Anthropic, OpenAI, Google) │
│ ├── Agent coordination system │
│ ├── Workflow automation engine │
│ └── Custom integrations framework │
├─────────────────────────────────────────────────────────────┤
│ Infrastructure: Hybrid Cloud │
│ ├── Dedicated hardware (Mac Mini per enterprise client) │
│ ├── EU-hosted data (GDPR compliance) │
│ ├── CDN (CloudFlare) │
│ └── Monitoring (Prometheus + Grafana) │
└─────────────────────────────────────────────────────────────┘
Data Flow
Client Request → Load Balancer → API Gateway → Service Layer → Database
↓
AI Orchestration Layer
↓
External Integrations
↓
Response + Real-time Updates
Security Architecture
Authentication & Authorization
- SSO: Auth0 enterprise integration
- MFA: TOTP, SMS, hardware keys supported
- RBAC: Role-based access control (5 permission levels)
- Session: JWT with refresh tokens, 24h expiry
- API Keys: Scoped, rotatable, audit-logged
Data Protection
- Encryption at Rest: AES-256 (database, files)
- Encryption in Transit: TLS 1.3 only
- Data Residency: EU-only (Netherlands, Germany)
- Backup Encryption: GPG-encrypted, geo-distributed
- Key Management: Hardware security modules (HSMs)
Scalability Design
Performance Targets
| Metric | Target | Enterprise |
|---|---|---|
| API Response | <200ms (95th percentile) | <150ms |
| Dashboard Load | <2s initial paint | <1.5s |
| Concurrent Users | 1000+ per instance | 5000+ |
| Uptime SLA | 99.9% | 99.95% |
Resource Planning
| Tier | vCPUs | RAM | Storage | Users | Price |
|---|---|---|---|---|---|
| Professional | 4 | 8GB | 500GB | 50 | €997/mo |
| Enterprise | 8 | 16GB | 1TB | 500 | €2,497/mo |
| Custom | 16+ | 32GB+ | 2TB+ | 1000+ | Custom |
AI Orchestration Engine
Multi-LLM Strategy
- Primary: Anthropic Claude (reasoning tasks)
- Secondary: OpenAI GPT-4 (creative tasks)
- Specialized: Google Gemini (data analysis)
- Routing: Cost-optimized based on task complexity
- Monitoring: Response time, quality scores, cost tracking
Integration Architecture
Supported Platforms (40+)
| Category | Platforms |
|---|---|
| E-commerce | Shopify, WooCommerce, BigCommerce, Magento |
| Analytics | Google Analytics, Facebook Pixel, Hotjar |
| Advertising | Facebook Ads, Google Ads, TikTok Ads |
| Klaviyo, Mailchimp, ConvertKit, ActiveCampaign | |
| Social | Instagram, TikTok, Twitter, LinkedIn, Pinterest |
| CRM | HubSpot, Salesforce, Pipedrive, Airtable |
| Communication | Slack, Discord, Telegram, WhatsApp, Teams |
API-First Design
- REST API: OpenAPI 3.0 specification
- GraphQL: For complex data queries
- Webhooks: Real-time event notifications
- SDK: Python, JavaScript, PHP libraries
- Rate Limiting: Tier-based (1K-100K requests/hour)
Technology Stack
Core Technologies
- Frontend: Next.js 15, React 18, TypeScript, Tailwind CSS
- Backend: PHP 8.3, Node.js 22, Python 3.12
- Database: MySQL 8.0, Redis 7, Vector DB (Qdrant)
- Infrastructure: Docker, Kubernetes, CloudFlare, Hetzner
- Monitoring: Prometheus, Grafana, Sentry, LogRocket
- AI: Anthropic Claude, OpenAI GPT-4, Google Gemini
Developer Tools
- CI/CD: GitHub Actions, ArgoCD
- Testing: PHPUnit, Jest, Playwright
- Security: Snyk, OWASP ZAP, SonarQube
- Documentation: OpenAPI, Storybook, GitBook
Document Version: 2.1 | Last Updated: March 2026 | Review Cycle: Quarterly | Owner: Engineering Team
For questions or updates, contact: engineering@delegated.nl