Project Overview
The work, in context.
A PropTech startup came to us with a validated concept: a unified SaaS dashboard for property managers to track income, expenses, occupancy, and unit performance across their entire portfolio. They had a basic spreadsheet-based prototype and 12 committed early customers. They needed a production-grade platform that could launch in weeks and scale to thousands of users without a costly rebuild.
The Challenge
The Problem
The client had already spent months with a previous agency and been handed a prototype that was slow, hard to extend and carrying significant technical debt. The real problem was not shipping features; it was arriving at an architecture that could take sustained tenant growth without another rebuild.
- Previous build had N+1 database queries causing 8-second load times at just 50 concurrent users
- No multi-tenancy: each customer's data was not properly isolated
- No CI/CD pipeline: deployments took 4 hours and frequently broke production
- Zero automated testing: every release was a manual QA nightmare
- No analytics: the founding team couldn't see which features users actually used
Our Solution
Our Approach
We conducted a one-week technical discovery sprint, assessed what to salvage (the core database schema), and rebuilt the application layer from scratch on a scalable, multi-tenant architecture.
Multi-Tenant Architecture
Built a database-per-tenant model using MongoDB namespacing, with shared infrastructure and isolated data boundaries. This gives both data security and operational simplicity.
Performance-First Frontend
Rebuilt the React frontend with code-splitting, lazy loading, React Query for server-state management, and Recharts for interactive analytics. Load time dropped from 8s to under 1.6s.
Scalable Backend & API
Designed a RESTful Node.js/Express API with Redis caching for hot data paths, rate limiting, and database indexing strategy. It handles concurrent traffic without degradation.
CI/CD & Observability
Implemented GitHub Actions for automated testing and zero-downtime deployments to AWS. Added Datadog for APM, error tracking, and usage analytics, giving the team full production visibility.
Execution Timeline
Our Step-by-Step Process
01 / Month 1
Tech Audit & Refactoring
Profiling N+1 database queries, isolating database namespacing, and setting up clean CI/CD.
02 / Months 2-3
Core Frontend Rebuild
Writing React elements with lazy loading, dynamic imports, and React Query.
03 / Months 4-5
Multi-Tenancy & Backend
MongoDB Atlas shard key design, Redis cache layer, and Stripe API integration.
04 / Months 6-8
CI/CD & Final Scale Testing
Deploying AWS pipeline, configuring Datadog, and verifying load capacities.
Tech Stack
Built with
- React 18
- Vite
- Node.js
- Express
- MongoDB
- Redis
- AWS EC2 & S3
- GitHub Actions
- Datadog
- Stripe
- React Query
- Recharts
Results
Measurable impact and verified outcomes
Discovery to production
One-week technical discovery sprint, then staged rebuild in two-week cycles
Multi-tenancy model
MongoDB namespacing on shared infrastructure, with isolated data boundaries and no separate clusters
Caching layer
Hot data paths cached ahead of the database, with rate limiting at the API edge
Data access pattern
Dashboard reads restructured into aggregation pipelines instead of per-record queries
Retrospective
Lessons Learned & Refinements
Database Namespacing
Schema isolation per tenant kept multi-tenancy robust and secure without multiple expensive database clusters.
Client-Side State
React Query dramatically cut duplicate fetch calls, optimizing dashboard loading for heavy data-views.
Frequently Asked
Trending Questions & FAQs
How did you handle multi-tenancy for data isolation?
We used a database-per-tenant model with MongoDB, where each tenant has their own namespace. This gives true data isolation without the operational complexity of separate database clusters at early scale.
What was the biggest performance bottleneck?
N+1 queries in the original build. A single dashboard page was firing 47 separate database queries. We restructured the data access layer with aggregation pipelines and added Redis caching, reducing that to 3 queries.
How long was the MVP phase before scaling?
We delivered a production-ready MVP in 6 weeks, covering core dashboard, authentication and unit management. The remaining 6 months were structured 2-week sprints adding analytics, billing, integrations, and scaling work.
