A B2B project management software provider used by mid-market operations teams for complex workflow orchestration. However, they faced significant hurdles:
- Cost Prohibitive: Spinning up new infrastructure for every client was expensive.
- Slow Sales Cycle: Onboarding took weeks of manual provisioning.
- Maintenance Hell: Updating software meant deploying to 18 separate environments.
We redesigned the backend for multi-tenancy with strong isolation:
- Row-Level Security (RLS): Implemented in PostgreSQL to ensure tenant data isolation within a shared database.
- Cognito Custom Attributes: mapped users to tenant IDs automatically.
- Terraform Modules: To automatically provision dedicated resources for premium "Enterprise" tier tenants who still needed physical isolation.
Cost Per Tenant ($)
Designing the tenant isolation strategy.
Writing tools to merge databases.
Testing with 5 pilot customers.
Cutover of all 18 client environments.
Infrastructure costs dropped by 35% as resources were shared efficiently. New client onboarding moved from weeks to the same week, allowing the sales team to close deals faster.
"Our margins used to be eaten up by server costs. Now, we add customers without adding overhead. It's pure profit."
