Skip to main content

Patterns

Engineering decisions, implementation notes, and accounts of how we run data and infrastructure systems in production.

BigQuery global queries or a local serving copy?

A global BigQuery query can suit occasional selective reads. An approved local copy can save transfers when reports repeatedly read the same remote data.

Last updated: Nov 15, 2026

Use BigQuery clones for bounded development work

Use a writable BigQuery clone when a test needs the source data's distribution or history. Use a small fixture when it reproduces the problem.

Last updated: Nov 15, 2026

Plan regional recovery for a single-region service

Rehearse a full restore outside the primary region. Consider a warm standby if restoration can't meet the recovery time or data-loss target.

Last updated: Nov 15, 2026

Publish related BigQuery tables as one consistent release

Publish related BigQuery tables in one DML transaction when the change fits. Use immutable releases when readers need consistency across separate queries.

Last updated: Nov 15, 2026

Decide when a closed management report may change

Preserve the report people used, publish corrections visibly, and decide which version future comparisons should use.

Last updated: Nov 15, 2026

BigQuery physical vs. logical storage: compare the full bill

Physical billing rewards compression, but retained versions can consume the savings. Compare both models using the dataset's current data, rewrite history, and recovery requirements.

Last updated: Oct 2, 2026

BigQuery primary keys are NOT ENFORCED: what to validate

Declare BigQuery primary and foreign keys only on data you can validate before publication. The optimizer may rely on those keys even when the data violates them.

Last updated: Oct 2, 2026

An alert is not a notification

Send a notification when awareness is enough. Create an operational alert when someone owns a decision.

Last updated: Sep 1, 2026

Data-Driven Alerts: System Breakdown

Use a data-driven alert when someone can act on a business condition in time to change the outcome.

Last updated: Sep 1, 2026

Safe scaling defaults for Cloud Run + Postgres

Set Cloud Run instance limits, request concurrency, and per-process pools together so the fleet fits within PostgreSQL's connection budget.

Last updated: Sep 1, 2026

On-demand vs slots: the SME decision boundary

Start an SME warehouse on BigQuery on-demand pricing. Consider reservations when recurring workloads need predictable capacity or interfere with one another.

Last updated: Sep 1, 2026

Why your BI dashboards melt BigQuery

Trace every BigQuery job behind one dashboard interaction. Each tile, filter change, or refresh can trigger more work.

Last updated: Sep 1, 2026

A dashboard is not an operating system

Use dashboards to show what is happening. Use a workflow when a case needs an owner to act before a deadline.

Last updated: Sep 1, 2026

Reviewability is a data platform feature

A reviewer should be able to tell which business results a data change will alter before approving it.

Last updated: Sep 1, 2026

Why we usually choose Pulumi over Terraform

We usually choose Pulumi for new infrastructure when typed components make shared resource definitions easier to review.

Last updated: Sep 1, 2026