proomt

Search

Search posts, papers, and topics

All posts

TemporalChandler Ortman9 min readintermediate

Running out of runway: Migrating Temporal Cloud's billing store to ClickHouse

Summary

Temporal Cloud migrated its billing store to ClickHouse, gaining 3-5 years of headroom and reducing costs by 70%. The migration focused heavily on a six-week shadowing period to validate data correctness, which uncovered an integer overflow bug in ClickHouse for large accounts.

  • Shadowing critical data migrations with background comparisons is crucial for correctness.
  • Define expected vs. blocking differences upfront, including float precision and freshness gaps.
  • Test shadowing on high-volume accounts first to expose scale-related bugs like integer overflows.
  • Roll out critical data path changes in order of reversibility, starting with read-only APIs.

Engineers managing critical data migrations, especially for billing or financial systems, will find valuable lessons on validation strategies and thoughtful rollout methodologies.

7/10

Related reading

  1. September 2026 newsletter

    ClickHouse's September 2026 newsletter highlights the 26.8 release with features like pipelined SQL and custom HTTP handlers, alongside previews for On-Demand Compute and a PromQL-compatible TimeSeries engine. It also covers new Postgres integration tools and a cost-performance benchmark for cloud data warehouses.

    ClickHouseclickhouse.com7 min
  2. Temporal expands its Google Cloud Partnership with Gemini integration and pay-as-you-go pricing on Google Cloud Marketplace

    Temporal added a public‑preview integration with Google’s Gen AI Python SDK, letting Gemini calls survive crashes, and launched Temporal Cloud on Google Cloud Marketplace with pay‑as‑you‑go pricing and a $1,000 starter credit. The updates aim to simplify AI agent orchestration and procurement for teams already on Google Cloud.

    Temporaltemporal.io2 minrelease
  3. How LlamaIndex uses Temporal to scale reliable document orchestration

    LlamaIndex migrated from RabbitMQ to Temporal for orchestrating complex, multi-stage document processing workflows, scaling to tens of millions of pages daily. This shift enabled them to replace ad-hoc state management and concurrency controls with Temporal's durable execution and workflow primitives, improving reliability and resource efficiency.

    Temporaltemporal.io7 min
  4. ClickHouse is now available on the dbt platform

    ClickHouse released a public‑beta dbt v2 adapter written in Rust that ships inside the dbt binary and talks to ClickHouse via the new ADBC driver. The adapter promises up to 30× faster dbt parsing and leverages ClickHouse’s sub‑second, high‑concurrency engine (e.g., materialized views, MCP server). A private‑beta integration on the dbt Platform now lets users develop, schedule, and catalog ClickH…

    ClickHouseclickhouse.com8 min