Platform Architecture
A modern, layered architecture built for scalability, security, and operational excellence.
High-Level Architecture

Our platform follows a clean, layered architecture pattern that separates concerns and enables independent scaling of each component. This design ensures high availability, maintainability, and security across all deployment environments.
Client Layer
Multi-tenant user and admin interfaces with HTTPS/SSL encryption. Supports web browsers and mobile-responsive designs for on-the-go management.
Network & Ingress
Metal LB load balancing, Caddy reverse proxy, Tailscale VPN for secure remote access, and k8s API for programmatic control.
Core Services
Deploy tool for infrastructure automation, Deploy UI for user-friendly deployments, n8n for workflow orchestration, and Kong Gateway for API management.
Data Layer
Redis for caching, Supabase services (GoTrue/Auth, Internal APIs, Realtime, PostgreSQL) with PVCS for persistent storage and object storage for file management.
Detailed Cluster Architecture

The automation cluster runs on Kubernetes with intelligent resource allocation, service discovery, and automated scaling. Every component is containerized and managed through declarative infrastructure-as-code.
Kubernetes Orchestration
Ingress & Networking
The ingress controller handles external traffic routing with automatic SSL/TLS termination. Internal service mesh provides encrypted pod-to-pod communication.
n8n Workflow Engine
n8n main instances handle workflow execution with Redis-backed queue management. Auto-scaling triggers based on CPU, memory, and workflow backlog depth.
Supabase Backend
PostgreSQL, GoTrue (Auth), PostgREST API, Realtime subscriptions, Storage API, and Meta API all deployed as separate, scalable microservices.
Deployment Services
Deploy Tool (Terraform Automation)
Handles infrastructure provisioning via Terraform with support for AWS, Azure, and Kubernetes. Manages state in PostgreSQL backend with workspace isolation for multi-environment deployments.
Deployment Interface
User-friendly web interface for configuring and launching deployments. Real-time log streaming, deployment history, and cluster monitoring via integrated Grafana dashboards.
Container Registry
Centralized container image storage with vulnerability scanning and automated garbage collection. Supports private images for custom integrations and proprietary workflows.
Monitoring & Observability
Metrics Stack
- •Grafana: Unified dashboard for cluster health, resource utilization, and workflow performance
- •Scrape: Prometheus-compatible metrics collection from all services
- •Check Mk: Infrastructure monitoring with automated alerting
Logging & Tracing
- •Blackbox: External probe monitoring for uptime validation
- •Logflare: Centralized log aggregation with search and filtering
- •Real-time alerts: Slack, email, and webhook notifications for critical events
Utility Services
Gotenberg (PDF Generation)
Headless Chrome-based PDF rendering for invoices, reports, and document generation. Handles HTML-to-PDF conversion with full CSS support and custom fonts.
Resend (Email Service)
Transactional email delivery with templating, tracking, and bounce handling. Integrated with n8n for automated email workflows and notifications.
External Integrations
SendGrid (Legacy Email)
Maintained for backward compatibility with existing workflows. Gradually being phased out in favor of Resend for better deliverability and modern API design.
AWS S3 (Object Storage)
External cloud storage for file uploads, backups, and long-term archival. Provides S3-compatible API for seamless integration with workflows and applications.
Key Benefits
Horizontal Scaling
Every layer can scale independently. Add more n8n workers, database replicas, or Supabase pods without affecting other services.
Defense in Depth
Multiple security layers: network segmentation, service-level authentication, database encryption at rest, and SSL/TLS for all external connections.
Data Sovereignty
All data stays within your infrastructure. No third-party SaaS vendors have access to your workflows, credentials, or business logic.
Infrastructure as Code
Entire platform is version-controlled and reproducible. Disaster recovery becomes a simple `terraform apply` command.
Deploy This Architecture Today
This isn't a proof-of-concept—it's a battle-tested platform running production workloads. Schedule a Logic Audit to see how we'd architect your automation infrastructure.
Schedule Your Logic Audit