A post-YC B2B SaaS had hit Rails scaling limits at $1.2M ARR. Each new enterprise customer required a new Heroku app. Infra was eating 38% of revenue and the on-call burden was unsustainable.
Migrated to a multi-tenant Postgres + ECS architecture on AWS with row-level isolation, customer-specific encryption keys, and a tenant-aware autoscaling policy. Built a self-serve onboarding flow.
- Infra cost dropped from 38% to 14% of revenue
- Onboarding compressed from 2 weeks to 12 minutes
- Scaled to 4x users without re-architecture
- On-call paging dropped 78%