My works

Confidentiality Notice: In strict accordance with NDA requirements and our internal security standards, we do not disclose the names of our clients. The cases below are real architectural investigations with genuine technical metrics, but the business entities are completely anonymized.

Audit & FinOps

Comprehensive Cloud Audit: Infrastructure Modernization and FinOps Remediation

Challenge

A rapidly expanding SaaS provider faced a dual crisis: a monthly Google Cloud bill that had unpredictably ballooned by 180% over six months, and growing architectural fragility. The infrastructure had been provisioned manually across multiple uncoordinated engineering teams, resulting in a sprawling, opaque cloud environment.

An initial assessment revealed massive compute over-provisioning, a complete absence of cost-allocation tags, and numerous “zombie” assets, including unattached persistent disks, orphaned snapshots, and idle load balancers. Furthermore, the lack of Infrastructure as Code (IaC) made financial tracking, security auditing, and disaster recovery functionally impossible.

Solution

A data-driven infrastructure audit was executed to map the entire GCP footprint using Cloud Billing Export and VPC Flow Logs. Following the audit, a strict FinOps governance framework was introduced. Over 200 idle legacy resources were safely decommissioned, and core production workloads were right-sized and secured with Committed Use Discounts (CUDs).

Once the environment was optimized, the modernized architecture was fully codified using Terraform to enforce standard tagging and prevent future configuration drift. The remediation reduced total monthly cloud expenditure by 42% (saving approximately $30,000 monthly), while the introduction of Terraform accelerated new infrastructure deployment times by 80%.

Tech Stack: Cloud Billing Export Terraform Compute Engine (CUDs) VPC Flow Logs Security Command Center
Cloud FinOps

BigQuery Cost Optimization and Automated Workload Governance

Challenge

A digital advertising platform experienced a 250% surge in BigQuery compute costs over a single quarter, peaking at over $40,000 per month. The platform was scanning more than 200 TB of data daily under the standard On-Demand pricing model.

A preliminary audit revealed that automated BI tools and analysts were executing unoptimized queries against massive historical datasets. The absence of strict partitioning policies and real-time cost observability meant that financial overruns were only detected at the end of the billing cycle, severely impacting the project’s unit economics.

Solution

A comprehensive FinOps governance strategy was implemented utilizing INFORMATION_SCHEMA.JOBS telemetry. The 25 most resource-intensive pipelines were refactored to enforce clustered keys and the REQUIRE_PARTITION_FILTER constraint.

Strict custom IAM quotas were deployed to cap daily compute usage per service account. Finally, predictable baseline workloads were transitioned from the On-Demand model to the Autoscaling Capacity (Editions) tier.

These architectural adjustments reduced monthly BigQuery costs by 62% and dropped daily scanned data volume from 200 TB to 45 TB. A dynamic Looker Studio dashboard was also deployed to provide stakeholders with daily financial observability.

Tech Stack: Google BigQuery (Capacity Pricing) Cloud Billing Export IAM Custom Quotas Dataform Looker Studio
Data Engineering

Stateful Stream Processing and Late-Arriving Event Sessionization

Challenge

An AdTech platform processed tens of millions of user interactions daily across multiple disjointed sources. Due to mobile network unreliability and client-side caching, up to 15% of critical conversion events arrived late or entirely out of order.

The existing batch-oriented pipelines failed to accurately stitch these fragmented user sessions. Standard SQL window functions timed out trying to re-calculate deep historical partitions, leading to double-counting, corrupted marketing ROI models, and broken attribution logic.

Solution

A Lambda-inspired event-streaming architecture was engineered. Raw payloads were ingested through an edge API layer into Cloud Pub/Sub. BigQuery was established as the immutable append-only event ledger.

To resolve out-of-order data, Dataform was configured with complex incremental DAGs employing multi-pass watermarking. The models continuously recalculated dynamic session windows, systematically stitching late-arriving events into their correct historical context without requiring full table scans. This architecture restored cross-device tracking accuracy and enabled the attribution engine to operate on deduplicated, financial-grade session data.

Tech Stack: Cloud Pub/Sub Google BigQuery Dataform Terraform Advanced SQL (Watermarking)
Data Engineering

Cross-Cloud Data Synchronization and Real-Time CDC Pipeline

Challenge

A mid-market European logistics provider relied heavily on Azure SQL for core transactional operations but selected Google BigQuery as its enterprise data warehouse to leverage advanced analytical capabilities.

The primary challenge was continuously replicating highly mutable database records across clouds in real-time. Traditional batch ETL jobs caused unacceptable data latency, while direct streaming attempts resulted in massive cross-cloud egress fees, schema drift failures, and silent data corruption when handling concurrent database updates.

Solution

A resilient Change Data Capture (CDC) architecture was deployed. Database transaction logs were captured and streamed as compressed payloads via Cloud Pub/Sub. Custom F# microservices hosted on Cloud Run were engineered to handle complex JSON shredding, payload deduplication, and schema validation before writing to BigQuery via the Storage Write API.

To guarantee absolute consistency, Dataform was utilized to build daily reconciliation models that cross-checked record hashes against the Azure source. This ensured sub-second cross-cloud replication with exactly-once delivery, minimizing egress costs while providing analysts with 100% consistent, real-time data.

Tech Stack: Google BigQuery (Storage Write API) Cloud Run Cloud Pub/Sub F# Dataform Terraform
Data Engineering & Analytics

End-to-End Analytics Platform: Server-Side Tagging and Algorithmic Attribution

Challenge

A major retail enterprise processing approximately 20 million daily events faced severe data fragmentation and attribution inaccuracies. Client-side tracking was highly impacted by ad blockers and Intelligent Tracking Prevention (ITP), resulting in an estimated 25% loss in conversion visibility across web and mobile app platforms.

Furthermore, the marketing team relied on primitive last-click attribution, which obscured the true ROI of top-of-funnel campaigns. Raw data was siloed, and analytical queries on unstructured JSON payloads were prohibitively slow, making cross-platform user journey analysis practically impossible.

Solution

A first-party data infrastructure was engineered using Server-Side Google Tag Manager (sGTM) deployed on Cloud Run. This unified and secured data collection from both web and app endpoints, neutralizing ITP restrictions and streaming raw JSON payloads directly into BigQuery.

A multi-stage ELT pipeline was orchestrated to unnest, deduplicate, and normalize the data. For advanced analytics, a custom algorithmic attribution engine utilizing Markov Chains was developed. This model evaluated complex customer journeys to assign accurate, fractional conversion credit across all touchpoints.

Finally, four highly optimized core data marts were materialized: Executive ROI, Campaign Performance, Customer Lifetime Value (LTV), and Product Interaction. The new architecture recovered the 25% data loss, while the Markov model allowed the business to reallocate 18% of the marketing budget toward highly effective, previously undervalued channels.

Tech Stack: Server-Side GTM Cloud Run Google BigQuery Dataform Markov Chains (SQL/Python)
Data Engineering

Enforcing Pipeline Idempotency and Eliminating Transaction Duplication

Challenge

A high-volume transactional platform ingested payment events from two parallel sources: real-time webhooks from a payment gateway and nightly batch bulk exports from an internal billing system. From a basic ingestion viewpoint, both pipelines operated successfully.

However, due to network latency overlap and asynchronous retries, the same transaction was occasionally written twice. The lack of an atomic uniqueness constraint allowed data collisions in BigQuery. This caused financial dashboards to show inflated revenue and created daily reconciliation errors.

Solution

The data transformation layer was re-engineered using Dataform to enforce strict idempotency. Instead of raw appending, incremental models were structured to use window functions with a deterministic sort key.

ROW_NUMBER() OVER (PARTITION BY transaction_id ORDER BY event_timestamp DESC)

This guaranteed that even if a transaction arrived multiple times, only the latest, authoritative state was materialized into the final reporting tables. Duplicate transactions were completely eliminated, restoring absolute trust in the core analytics.

Tech Stack: Cloud Run Cloud Pub/Sub Google BigQuery Dataform Cloud Scheduler
Cloud FinOps

Post-M&A Cloud Optimization and Infrastructure Governance

Challenge

After the acquisition of a smaller competitor, a fast-growing e-commerce company faced a highly complex, opaque Google Cloud environment. While the user base grew by 10%, the monthly cloud bill increased by 40%, prompting a strategic pause on resource expansion.

A systematic architectural investigation using billing logs and VPC network traffic revealed two core inefficiencies. A significant portion of the budget was consumed by legacy test environments and unattached disks, while heavy background data processing tasks were running on expensive on-demand servers during peak traffic hours.

Solution

Precise cloud governance was implemented without interrupting the main application. A strict tagging architecture was established, and automated policies were configured to safely terminate any server lacking an owner tag with zero database network activity.

Asynchronous background workloads were migrated to cost-effective Spot VMs, and Committed Use Discounts (CUDs) were secured for core transactional databases. The monthly cloud bill was successfully reduced by 35% with zero downtime, achieving complete infrastructure transparency.

Tech Stack: Cloud Billing Export VPC Flow Logs Compute Engine (Spot VMs) Resource Labels CUDs
Data Engineering

Resolving Data Warehouse Bottlenecks with Incremental Architecture

Challenge

A large analytics platform processing 22 million daily user events encountered severe scaling limits. Following the launch of a detailed marketing dashboard, heavy database queries began to fail due to Google Cloud quota limits, causing significant spikes in daily billing. Upgrading to a flat-rate capacity plan would have severely impacted project profit margins.

Analysis of system logs in INFORMATION_SCHEMA.JOBS revealed a structural flaw: the data warehouse relied on a complex chain of nested logical Views. Each dashboard refresh bypassed caching, triggering full table scans of historical data and processing millions of unnecessary rows.

Solution

The data pipelines were restructured to deprecate heavy logical Views, and Dataform was integrated to orchestrate physical, materialized tables. SQL transformations were rewritten into incremental models, ensuring the database scanned only new events from the past 24 hours.

Deterministic surrogate keys were implemented using the FARM_FINGERPRINT function to guarantee data integrity for cross-platform attribution.

This architecture reduced scanned data volume by 98%, resolving quota limits, accelerating dashboard performance, and maintaining the cost-effective On-Demand pricing model. An automated cost-monitoring dashboard was subsequently deployed for long-term financial observability.

Tech Stack: Google BigQuery Dataform BigQuery SQL INFORMATION_SCHEMA Looker Studio
Architecture Assessment

Resolving Connection Exhaustion and Restructuring VPC

Challenge

A fast-growing B2B SaaS platform experienced random API timeouts and database connection drops during peak business hours. Initial attempts to resolve the instability involved upgrading the Cloud SQL instance to the highest hardware tiers, but crashes persisted despite the increased costs.

A comprehensive architectural audit using VPC Flow Logs and system metrics revealed an anti-pattern: the compute layer was opening direct, unpooled connections to the relational database. During traffic spikes, auto-scaling microservices opened thousands of simultaneous connections, instantly exhausting the database’s limit. Furthermore, a flat network topology caused inefficient internal traffic routing and severe latency.

Solution

The infrastructure blueprint was redesigned without altering core business logic. The Virtual Private Cloud (VPC) was restructured by moving microservices into isolated private subnets and routing traffic through an Internal HTTP(S) Load Balancer.

To protect the database, a connection pooling layer utilizing PgBouncer and Cloud SQL Auth Proxy was deployed to queue microservice requests and feed them to the database at a manageable rate.

As a result, API timeouts were completely eliminated, and the infrastructure successfully accommodated five times the peak traffic. This efficiency allowed the Cloud SQL instance to be downgraded to a standard tier, significantly reducing monthly costs while improving uptime.

Tech Stack: Cloud SQL VPC Network Internal HTTP(S) LB Cloud Run Cloud SQL Auth Proxy VPC Flow Logs
Data Engineering

Enterprise ELT Modernization and Data Latency Reduction

Challenge

A global logistics company struggled to process 500GB of daily telemetry data originating from disparate external APIs and internal databases. The legacy data pipeline relied on a brittle network of custom scripts and unmonitored cron jobs.

This unstructured architecture resulted in a 12-hour data lag, frequent silent failures, and an estimated 8% data loss during high-load periods. The business intelligence team was unable to track fleet performance in near-real-time, leading to compromised operational decisions and missed delivery SLAs.

Solution

A robust, scalable ELT architecture was implemented. Airbyte was deployed to manage deterministic data ingestion from 15 distinct sources into BigQuery. The transformation layer was completely rewritten using dbt to ensure data quality testing and modular SQL modeling.

The entire pipeline workflow was orchestrated via Cloud Composer (Managed Airflow), providing centralized observability and automated retries. As a result, data latency was reduced from 12 hours to under 15 minutes, processing 1.2 billion rows daily with 99.99% uptime and zero silent failures.

Tech Stack: Google BigQuery Airbyte dbt Cloud Composer (Airflow)
Architecture Assessment

Cloud Infrastructure Audit and Compliance Remediation

Challenge

A rapidly scaling fintech startup required SOC2 Type II certification to onboard enterprise clients. However, their Google Cloud environment had grown organically over three years without strict architectural guidelines.

Preliminary security scans identified 40+ critical vulnerabilities, including overly permissive IAM roles, publicly exposed staging databases, and manual, untracked infrastructure modifications. The lack of Infrastructure as Code (IaC) meant that replicating the environment for disaster recovery or auditing was functionally impossible, blocking their certification process.

Solution

A deep architectural audit was conducted to map all existing assets and access vectors. Following the assessment, the entire cloud infrastructure was codified into structured Terraform modules, eliminating manual configuration drift.

Strict least-privilege IAM policies and VPC Service Controls were enforced across all data perimeters. Within 3 weeks, critical security vulnerabilities were reduced to zero. The startup successfully passed the SOC2 audit, and the new Terraform foundation reduced infrastructure deployment times by 70%.

Tech Stack: Terraform Cloud IAM VPC Service Controls Security Command Center
Proof of Concept (PoC)

High-Performance Attribution Engine Proof of Concept

Challenge

An enterprise media agency required a highly complex, multi-touch attribution model to evaluate ad spend across 20+ channels. Standard SQL-based transformations within the data warehouse were too slow and computationally expensive to execute the required mathematical algorithms on millions of user journeys.

Before committing a $150,000 budget to refactor their entire data platform, the client needed to validate whether a custom event-streaming architecture could handle the computational load efficiently and securely.

Solution

A rapid Proof of Concept (PoC) was developed and deployed within 4 weeks. Data was securely ingested via Cloud Pub/Sub and routed to a serverless Cloud Run environment.

A custom data processing module was engineered in F# to perform complex algorithmic attribution in memory before writing the final states to BigQuery. The PoC successfully processed a stress-test payload of 5 million events in under 2 minutes—demonstrating a 40x speed increase over the legacy SQL approach. The architecture was fully validated, mitigating all technological risks before enterprise scale-up.

Tech Stack: Cloud Run Cloud Pub/Sub F# Google BigQuery
Data Observability

Proactive Anomaly Detection and Pipeline Observability

Challenge

A digital publishing platform suffered from silent data pipeline failures. Dashboards frequently displayed stale or corrupted metrics, leading to misallocated advertising budgets.

The lack of proactive monitoring meant data engineering teams only discovered anomalies after stakeholders reported discrepancies. Identifying the root cause within the raw data layers typically took over 24 hours, severely damaging business trust in the analytics platform.

Solution

A comprehensive Data Observability layer was integrated directly into the ELT process. Dataform assertions were configured to automatically validate row counts, uniqueness, and null constraints before materializing the final reporting tables.

Cloud Monitoring and custom Cloud Functions were deployed to instantly route anomaly alerts to the engineering Slack channel. Data freshness was strictly guaranteed before dashboard rendering, and the Time to Resolution (TTR) for pipeline anomalies was reduced from 24 hours to under 15 minutes.

Tech Stack: Google BigQuery Dataform (Assertions) Cloud Monitoring Cloud Functions
Cloud FinOps

BigQuery Cost Optimization and IAM Governance

Challenge

An enterprise client faced a 300% surge in monthly Google BigQuery costs over a six-month period. The internal billing dashboards indicated that compute costs were vastly disproportionate to the actual data storage growth.

Investigation into the query execution logs revealed that business analysts were executing unoptimized SQL queries via external BI tools on multi-terabyte tables. These queries regularly performed full table scans without utilizing partition filters, processing massive amounts of historical data for simple daily reports.

Solution

Strict FinOps governance was established to halt infrastructure overspend. Custom compute quotas were enforced at both the user and project levels via IAM parameters, immediately blocking runaway queries.

The core data warehouse architecture was optimized by deploying Materialized Views and enforcing mandatory partition filters on all massive datasets. Monthly BigQuery compute costs were successfully slashed by 65%, while average query execution times improved by 40%.

Tech Stack: Google BigQuery Cloud Billing Cloud IAM (Quotas) Materialized Views