---
title: "Replica-aware routing public beta"
description: "ClickHouse Cloud's replica-aware routing pins requests to a single replica so temporary tables, named sessions, warm local caches and read-after-write consistency work on multi-replica services."
url: "https://swe.quest/articles/replica-aware-routing-public-beta-dc0c815797e9326c"
canonical: "https://clickhouse.com/blog/replica-aware-routing-public-beta"
source: "ClickHouse"
published: "2026-09-15"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 7
tags: ["load-balancing","consistency","replication","analytics","cloud"]
---

# Replica-aware routing public beta

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-09-15, 7 min read, Announcement. Original: [https://clickhouse.com/blog/replica-aware-routing-public-beta](https://clickhouse.com/blog/replica-aware-routing-public-beta)

## Summary

ClickHouse Cloud's replica-aware routing pins requests to a single replica so temporary tables, named sessions, warm local caches and read-after-write consistency work on multi-replica services. Clients opt in with an X-ClickHouse-Replica-Tag HTTP header or, over the native protocol, a TLS SNI override. Envoy, configured through Istio, consistent-hashes either value onto a replica. The native path reuses the existing regional certificate by validating against --host while routing on the SNI, and a Go snippet shows the custom VerifyPeerCertificate needed for that. Stickiness is best-effort and is lost on upgrades, restarts or scaling. It does not isolate workloads and is in public beta for Enterprise tier only.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Load balancing](https://swe.quest/tags/load-balancing.md) (Infrastructure)
- [Consistency models](https://swe.quest/tags/consistency.md) (Distributed systems)
- [Replication](https://swe.quest/tags/replication.md) (Distributed systems)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)

## Prerequisites

- ClickHouse replication basics ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- TLS and SNI ([easy posts on Cryptography](https://swe.quest/tags/cryptography.md?difficulty=easy))
- L4 vs L7 proxies ([easy posts on Load balancing](https://swe.quest/tags/load-balancing.md?difficulty=easy))

## Keywords

ClickHouse Cloud, Envoy, Istio, SNI, consistent hashing, replica-aware routing

## Related posts

- [Building ClickHouse Cloud From Scratch in a Year](https://swe.quest/articles/building-clickhouse-cloud-from-scratch-in-a-year-f29d54507578a627.md): ClickHouse · 2023-03-16 · Medium · 23 min read · System design, Cloud platforms, Kubernetes, Analytics & OLAP, Multi-tenancy
  ClickHouse Cloud was built in about a year on a "shared everything" architecture: compute and storage are separated, object storage (S3/GCS) is the primary store, and local SSDs handle caching and metadata.
- [Don't add a read replica until you've read this](https://swe.quest/articles/don-t-add-a-read-replica-until-you-ve-read-this-a990a2b0dc14e87b.md): incident.io · 2026-07-21 · Medium · 18 min read · PostgreSQL, Replication, Consistency models, Go, Scaling
  incident.io moved nearly all Postgres read traffic to a read replica and had to preserve read-after-write consistency without hand-routing each query.
- [Observing in style: How Poizon rebuilt its data platform with ClickHouse Enterprise Edition](https://swe.quest/articles/observing-in-style-how-poizon-rebuilt-its-data-platform-with-clickhouse-fd5f014575f8d9e5.md): ClickHouse · 2025-03-31 · Medium · 9 min read · Analytics & OLAP, Observability, Scaling, Cost optimization, Cloud platforms
  Poizon moved its distributed-tracing observability store, which ingests petabytes of trace data daily, from self-hosted single-replica ClickHouse on cloud disks to ClickHouse Enterprise Edition on Alibaba Cloud.
- [How AdGreetz Processes Millions of Daily Ad Impressions with ClickHouse Cloud](https://swe.quest/articles/how-adgreetz-processes-millions-of-daily-ad-impressions-with-clickhouse-cloud-923fb2f6799d75bf.md): ClickHouse · 2023-04-26 · Easy · 3 min read · Analytics & OLAP, Ads, Cost optimization, Serverless
  AdGreetz moved its ad impression analytics from AWS Athena to Snowflake and then to ClickHouse Cloud, citing roughly six times lower cost than a small Snowflake standard plan and sub-second rather than multi-second queries.
- [Building a Paste Service With ClickHouse](https://swe.quest/articles/building-a-paste-service-with-clickhouse-1cd0d0d493c69976.md): ClickHouse · 2022-04-01 · Medium · 13 min read · Databases, Analytics & OLAP, Replication, System design, JavaScript
  pastila.nl is a minimal paste service whose browser JavaScript sends INSERT and SELECT queries directly to an internet-facing ClickHouse instance.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
