proomt

Search

Search posts, papers, and topics

All posts

ClickHouseAmy Chen, Jan Mensch6 min readintermediate

Replica-aware routing public beta

Summary

Replica‑aware routing (public beta) lets ClickHouse Cloud users pin a query stream to a specific replica by sending a custom header (HTTP) or overriding the TLS SNI (native). The proxy (Envoy) hashes the tag and consistently forwards all requests with the same tag to that replica, giving read‑after‑write consistency for temporary tables, session objects, and warm replica caches. Stickiness is bes…

  • Send `X-ClickHouse-Replica-Tag` (HTTP) or `--tls-sni-override` (native) to have Envoy hash the value and route all queries with that tag to the same replica.
  • Useful for temporary tables, named sessions, cache warm‑up, and read‑after‑write consistency in multi‑replica clusters.
  • Implemented as a layer on Istio/Envoy; uses header‑based consistent hashing rather than sub‑domain certificates.
  • Stickiness is not a guarantee – upgrades, restarts, or scaling can re‑hash keys, so callers should verify the replica via `select hostname()` if needed.

In ClickHouse clusters, temporary objects and session state live only on the replica where they were created. Without sticky routing, load‑balancers can send follow‑up queries to a different replica, causing “object not found” errors and breaking read‑after‑write semantics. Replica‑aware routing gi…

6/10

Related reading

  1. 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
  2. Accelerating the borderless Lakehouse: Announcing preview of cross-cloud caching

    Google Cloud previewed cross‑cloud caching for its Borderless Lakehouse. The feature caches sub‑file Parquet blocks in Google Cloud, encrypts them with GMEK, isolates cache per tenant/region, and validates freshness via metadata checks. In tests it can reduce cross‑cloud data transfer to <5% of the original size, lowering query latency and cost for Iceberg tables stored in other clouds. BigQuery…

    Google Cloud Bloggoogle.com3 minrelease
  3. The official ClickHouse provider for Apache Airflow is now available

    The post announces the official ClickHouse provider for Apache Airflow, showing how to install it, configure a ClickHouse connection, and run queries using standard SQL operators or a ClickHouseHook. It includes examples for both self‑hosted Airflow and the Astronomer managed platform.

    ClickHouseclickhouse.com5 min
  4. On-Demand Masked Sessions with Twilio Proxy, Voice and Serverless

    A step‑by‑step tutorial showing how to build a Just‑in‑Time masked‑call workflow with Twilio Voice, Proxy, and Sync, using a two‑bounce out‑of‑session pattern to collect a tracking code via IVR, resolve the counterpart’s number, stash it in Sync, and auto‑create a Proxy session on the fly—all deployed as Twilio Serverless Functions.

    Twiliotwilio.com18 min
  5. Postgres week in the Netherlands: PGDay Lowlands & Percona Live 2026

    The author recaps two Dutch conferences where they presented ClickHouse‑Postgres extensions and discussed PostgreSQL 19 monitoring enhancements. The post explains how pg_clickhouse provides transparent query push‑down to ClickHouse and how pg_stat_ch streams per‑query metrics, plus new logging defaults and system views in PG 19.

    ClickHouseclickhouse.com7 min