Executive Summary
- Client
- Silicon Valley B2B SaaS Platform (1,200+ active client locations)
- Scope
- Data Warehouse Architecture, Multi-Tenant Semantic Layer, and Modern ELT Modernization
- Core impact
- Rescued a stalled product analytics roadmap, delivered full reporting capabilities in four months, and later re-architected the data platform to sustain multi-year enterprise growth and AI product expansion.
- Phase 14 months
Star schema and OLAP cube. Full customer analytics launch.
- Phase 2Next 2 years
Rapid growth pushes the custom ETL scripts past their limits.
- Phase 3Modernization
Airbyte, Dagster, dbt and Cube.js. Ready for AI features.
The Business Challenge: When Software Architecture Meets Data Sprawl
A high-growth Silicon Valley SaaS company serving over 1,200 business locations needed to launch an embedded analytics suite for its enterprise customers. Without dedicated data engineering leadership, the initial technical blueprint was designed by a core software architect using pre-aggregated summary tables to serve dashboard metrics and customer APIs.
When audited against actual customer reporting requirements, the approach created severe commercial and engineering risk:
- Combinatorial maintenance overhead: Supporting the required permutations of client metrics demanded roughly 300 separate summary tables, turning every schema update or new KPI into a brittle engineering exercise.
- An unviable product roadmap: Under the summary-table model, the team could only ship five analytics views at a time—delaying full product parity indefinitely while enterprise customers demanded self-service visibility.
- Engineering distraction: Core product developers were pulled into writing custom reporting queries instead of advancing the primary SaaS platform.
Phase 1: Dimensional Modeling & Rapid Market Delivery
Thamalu stepped in to replace the fragmented summary-table design with a purpose-built Star Schema data warehouse paired with a Python-based OLAP cube engine.
- Unified multi-dimensional design: Consolidated 300 planned summary tables into clean fact and conformed dimension tables capable of slicing, dicing, and aggregating data dynamically across 1,200+ locations.
- Four-month turnaround: By eliminating repetitive table and endpoint engineering, the team delivered the complete customer-facing analytics platform in 4 months.
Figure 1From table sprawl to a star schema
Planned design
Delivered design
Phase 2: Navigating the High-Growth Scaling Inflection Point
Over the next two years, rapid customer onboarding and expanding historical data volumes pushed the initial custom-scripted ETL pipelines past their operational limits:
- Memory exhaustion and latency: Monolithic, custom-written scripts began hitting RAM overloading during peak ingestion windows, slowing data freshness for end users.
- Limited operational visibility: Troubleshooting failed runs required manual log inspection, increasing maintenance risk as analytics became mission-critical to client retention.
Figure 2Where the custom ETL reached its limit
- Growing dataMore customers, more history
- Custom ETL scriptsRAM overload at peak ingestion
- Data warehouseStar schema
- Customer analyticsSlower data freshness
Phase 3: Enterprise ELT & Semantic Layer Modernization
To support the next stage of scale—and prepare the platform for AI-driven product features—Thamalu led a second architectural transformation, replacing custom scripts with a modular, observable modern data stack:
- Standardized Ingestion (Airbyte): Replaced brittle custom extractors with reliable, repeatable data ingestion connectors.
- Asset-Aware Orchestration (Dagster): Introduced dependency-aware scheduling, granular monitorability, observability, and automated recoverability, eliminating RAM-induced pipeline failures.
- Modular Transformations (dbt): Refactored business logic into version-controlled, tested SQL models so engineering teams could ship changes with confidence.
- Governed Semantic & API Layer (Cube.js): Decoupled metric definitions from frontend dashboards and APIs, enforcing consistent multi-tenant access controls and low-latency query caching across all 1,200+ locations.
Figure 3The modernized platform
- Data sources
- AirbyteStandardized ingestion
- Data warehouse + dbtTested, version-controlled SQL models
Strategic & Technical Outcomes
- Resilient, low-overhead operations: Eliminated memory bottlenecks and gave engineering teams end-to-end observability and rapid failure recovery across daily pipelines.
- Accelerated feature-to-analytics velocity: Product teams now introduce analytics for newly launched SaaS features in a fraction of the previous time—without building bespoke tables or APIs.
- Unified internal and external intelligence: Enabled leadership to run internal operational analytics alongside customer-facing dashboards from a single source of truth.
- Production AI and recommendation systems: Built on clean, governed historical data, the company successfully launched recommendation engines and AI analytics capabilities directly on top of the warehouse.