ClickHouse has released replica-aware routing in public beta for Enterprise customers, a feature that ensures queries route to the same database replica by using a routing key (via HTTP header or SNI override). This solves issues with temporary tables and sessions that only exist on their creation replica, and enables read-after-write consistency in multi-replica deployments.