UMAR SAYYAD
Microservices
PwC Risk Detect Fraud Platform
Stabilized a multi-tenant fraud-detection SaaS for USAA go-live with zero-downtime deployments.
PwC's Risk Detect for Insurance Fraud was a multi-tenant SaaS platform struggling with environment drift, manual deployments, and configuration chaos across client tenants. As Principal Engineer, I redesigned the deployment pipeline, configuration management, and data migration strategy — turning 18-hour release ordeals into routine monthly deploys.
Full stack
- Golang
- React
- TypeScript
- Tailwind
- PostgreSQL
- gRPC
- Azure Kubernetes Service
- Azure DevOps
- Azure Key Vault
- Azure Search
- Redis
- Docker
- Robot Framework
- Python
Architecture at a glance
Hover a component to trace what it connects to. Click one to jump to the layer it belongs to.
10 components · 11 connections · drag to pan, pinch or use the controls to zoom
Problem Space
Problem Space
- Monthly deployments required 18-hour coordination sessions across US, EU, and India teams — one deployment day per month per contract, zero margin for error.
- Environment drift meant features that passed QA broke in staging or production: out of 13 file-upload types, 2 failed silently in the USAA tenant but worked in PwC QA.
- Configuration was scattered across environment variables, Azure Key Vault, and an IAM configuration table loaded into application memory at boot — no single source of truth.
- Database migrations worked in dev but broke in higher environments when existing data conflicted with new schema changes.
- USAA go-live was imminent, and the team had no confidence that what was tested would match what shipped.
PwC's Risk Detect platform is a fraud-detection SaaS for insurance carriers. Each carrier (PwC internal, USAA, and others) runs as a tenant in a shared codebase deployed to separate Azure Kubernetes namespaces. The platform ingests claims data, runs AI-driven fraud detection, and surfaces results to adjusters through a React/TypeScript frontend.
The problem wasn't the product — it was the release process. Deployments were ad hoc, dispersed, and manual. Azure Search indexes required per-tenant, per-namespace reindexing after every deploy. Database migrations ran via a separate pipeline before app deployment but weren't tested against production-shaped data. Configuration lived in three places, and nobody could say with certainty which values were active in which environment.
With USAA's go-live on the calendar and only one deployment window per month, every release was existential.
Architecture
Architecture
- Microservices architecture: Golang backend services communicating via gRPC, with a React/TypeScript BFF layer for the frontend.
- The critical decision was to enforce data contracts at the API level, not the data layer — direct database access became forbidden.
- A monolithic configuration server (like Spring Config) was rejected in favor of API endpoints for managing tenant-specific values, keeping the learning curve low.
The platform was already microservices-based, but the architecture had eroded. Services talked to the database directly for configuration, seed data was injected via SQL scripts, and tenant-specific drop-down values lived in migration files that weren't migration-shaped.
I restructured the architecture around three principles: configuration as code, API-mediated data access, and idempotent migrations. Configuration would flow through dedicated API endpoints — not direct SQL, not manual Key Vault edits. The data layer became off-limits to humans; every mutation went through the service layer with its validation and audit trail.
We evaluated LaunchDarkly-style feature flags, a Spring Config-style server, and an admin UI. The team chose API endpoints with Swagger UI — the simplest approach that still enforced contracts and could be extended to a full admin UI later.
Tech at this layer
- Golang
- gRPC
- React
- TypeScript
Infrastructure
Infrastructure
- Azure Kubernetes Service with per-tenant namespaces, deployed via Azure DevOps pipelines.
- Azure Key Vault for secrets, Kubernetes environment variables for non-sensitive config, and an IAM configuration table for tenant-specific runtime values.
- The cost lever was automation: replacing manual post-deploy steps (Azure Search reindexing, migration verification) with pipeline stages cut release time from 18 hours to under 2.
- The deploy gate: no release without a green smoke suite and a migration dry-run against a production-shaped database snapshot.
The infrastructure was Azure-native: AKS for compute, Azure DevOps for CI/CD, Azure Key Vault for secrets, and Azure Search for full-text indexing of claims data. Each tenant got its own Kubernetes namespace with isolated database schemas.
The immediate problem was that post-deploy steps were manual. After every deployment, someone had to reindex Azure Search for each tenant in each namespace. If they forgot — or reindexed the wrong namespace — search broke silently. Migrations ran in a separate pipeline before the app deployed, but nobody verified them against production data shapes.
I worked with the team to automate both: Azure Search reindexing became a pipeline stage that created a new index, hydrated it, validated it, then swapped the alias — zero-downtime. Migrations became idempotent, ran on application boot, and were tested in CI against a snapshot of production data. The smoke suite (Robot Framework) ran automatically post-deploy.
Tech at this layer
- Azure Kubernetes Service
- Azure DevOps
- Azure Key Vault
- Azure Search
- Docker
Data Layer
Data Layer
- PostgreSQL per tenant with Golang Migrate for schema versioning.
- Azure Search indexes provided full-text search over claims data, rebuilt atomically on each deploy via a create-hydrate-swap pattern.
- Redis was initially proposed for configuration caching but was replaced by in-memory application state loaded from the IAM config table at boot.
- What was deliberately not cached: tenant-specific configuration values, because stale config in a fraud-detection system means missed detections.
Each tenant had its own PostgreSQL schema, managed by Golang Migrate. Migrations were tracked in the repository, included in the Docker image, and ran on application boot. The new rule was simple: every migration must be idempotent — it can run 100 times without breaking. No more ad hoc SQL scripts pushed through a database console.
Azure Search was the secondary data store, providing full-text search over claims, documents, and adjuster notes. The old approach — manually reindexing after a deploy — was replaced with an atomic swap: a new index is created, hydrated from the current database, validated, and then the alias is switched. The old index is deleted only after the new one is confirmed healthy.
Configuration lived in three tiers: secrets in Azure Key Vault (rotated automatically), non-sensitive environment variables in Kubernetes manifests (versioned in Git), and tenant-specific runtime values in the IAM config table (managed via API endpoints, never direct SQL).
Tech at this layer
- PostgreSQL
- Azure Search
- Redis
- Golang
Services
Services
- Claims ingestion service: receives claims from any channel, extracts structured data from unstructured documents.
- Fraud scoring service: AI-driven detection models that evaluate claims against historical patterns.
- Configuration service (new): API endpoints for managing tenant-specific drop-down values, seed data, and feature toggles without touching the database.
- The hardest piece was the migration testing service — a CI stage that ran migrations against a production-shaped snapshot and diffed the schema before and after.
The backend was a set of Golang microservices communicating via gRPC. The claims ingestion service normalized data from multiple input channels. The fraud scoring service applied ML models to detect anomalies. The notification service routed flagged claims to the right adjuster queue.
The service I added was the configuration management layer: a set of CRUD endpoints that replaced direct SQL access for tenant-specific values. Drop-down options, client-specific feature toggles, and seed data all moved behind the API. Swagger UI gave the operations team a self-serve interface without needing database credentials.
The migration testing service was the most impactful change. Before each deploy, CI pulled a sanitized snapshot of production data, ran the pending migrations against it, and compared the resulting schema. If anything broke — a NOT NULL column on a table with existing NULLs, a unique constraint on non-unique data — the pipeline stopped before the release even started.
Tech at this layer
- Golang
- gRPC
- Python
- Robot Framework
Interface
Interface
- React/TypeScript frontend with Tailwind, providing fraud investigation dashboards, claims search, and document review.
- Multi-tenant UI: a single codebase that adapts layout, terminology, and feature visibility per tenant configuration.
- The performance line held: search results rendered in under 200ms despite querying Azure Search across tens of thousands of claims.
The frontend was a React/TypeScript SPA styled with Tailwind. Adjusters used it to search claims, review flagged fraud indicators, view extracted document data, and manage investigation workflows. The same codebase served all tenants — tenant-specific configuration (loaded from the new API) controlled which features were visible, what terminology was used, and which file types were accepted.
The file-upload issue that surfaced the environment-drift problem (MP4 uploads working in PwC QA but failing in USAA) turned out to be a missing configuration value in the USAA namespace — the accepted-file-types list was shorter. Moving this to the configuration API with validation made the mismatch impossible to recreate.
Tech at this layer
- React
- TypeScript
- Tailwind
Outcome
Outcome
- Release time dropped from 18 hours to under 2 hours, with zero post-deploy manual steps.
- USAA go-live shipped on schedule with zero rollback incidents.
- The QA team went from testing in every environment to testing once in the internal environment, with confidence that tenant configuration was validated by the pipeline.
- The lesson: environment drift is a configuration problem, not a testing problem — no amount of QA compensates for config that isn't versioned.
The USAA go-live shipped on time. The deployment took 90 minutes, ran unattended, and required no manual intervention. The smoke suite passed on first run. No one stayed late.
More importantly, the changes were structural. Monthly releases became routine. The configuration API eliminated an entire class of environment-drift bugs. The migration testing service caught three breaking schema changes in the first month alone — all before they reached any environment above dev.
One thing I would do differently: I would have pushed for configuration-as-code from week one instead of building the API endpoints first. The endpoints solved the immediate problem, but the long-term answer is Git-versioned tenant config that the pipeline applies — the API should have been the second step, not the first. We started building that before I left, but starting there from the beginning would have saved two months of incremental automation.
Tech at this layer
- Azure DevOps
- Robot Framework
- Docker