Scalable Multi-Tenant Architecture for Hundreds of Custom Domains
These articles are AI-generated summaries. Please check the original sources for full details.
Scalable Multi-Tenant Architecture for Hundreds of Custom Domains
Modern SaaS platforms face a critical challenge: hosting hundreds of custom domains on a shared backend. The AWS ALB’s 100-SSL-certificate limit becomes a blocker when managing 300+ domains, requiring architectural ingenuity to avoid outages.
Why This Matters
The ideal multi-tenant model assumes unlimited scalability, but AWS enforces strict quotas. A misconfigured ALB with 100+ certificates risks downtime, while splitting tenants across multiple ALBs introduces operational complexity. The cost of mismanagement includes increased IaC overhead, error-prone domain tracking, and higher maintenance risk.
Key Insights
- “100 SSL certificates per ALB limit, AWS documentation”
- “CloudFront can forward Host headers to ALB for tenant routing”
- “Single internal origin domain (e.g., origin.example.com) eliminates ALB certificate dependency”
Working Example
User → https://storeABC.com
↓
CloudFront (receives request)
- TLS handshake with storeABC.com
- Decrypts request
- Forwards request to origin
↓
CloudFront → Origin (ALB via CNAME):
- HTTPS request to https://origin.example.com
- TLS handshake with ALB (*.example.com)
- Sends HTTP request with Host: storeABC.com
↓
ALB:
- Terminates TLS
- Receives Host: storeABC.com
- Forwards to backend service/pod in EKS
Practical Applications
- Use Case: SaaS commerce platforms with 300+ custom domains
- Pitfall: Attempting to attach 100+ certificates directly to ALB causes quota violations and potential service disruption
References:
Continue reading
Next article
Valkey 9.0 Delivers Atomic Slot Migration and Scales to 1 Billion Requests Per Second
Related Content
Deploying a Secure Three-Tier Book Review App on AWS
Step-by-step guide to deploying a production-grade three-tier architecture on AWS using Next.js, Node.js, and MySQL RDS with high availability and network isolation.
Scaling AWS VPCs: Architecture Patterns for Multi-Account Environments
Optimize AWS VPCs for multi-project scales using /20 CIDR blocks to balance 4,096 IPs per project against resource fragmentation.
Modern AWS Architecting: Transitioning from DevOps to Platform Engineering
Modern DevOps on AWS shifts focus from manual console management to building internal developer platforms using Infrastructure as Code and multi-account strategies.