---
title: "Building ClickHouse Cloud From Scratch in a Year"
description: "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."
url: "https://swe.quest/articles/building-clickhouse-cloud-from-scratch-in-a-year-f29d54507578a627"
canonical: "https://clickhouse.com/blog/building-clickhouse-cloud-from-scratch-in-a-year"
source: "ClickHouse"
published: "2023-03-16"
difficulty: "medium"
kind: "Case study"
reading_minutes: 23
tags: ["system-design","cloud","kubernetes","analytics","multi-tenancy"]
---

# Building ClickHouse Cloud From Scratch in a Year

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2023-03-16, 23 min read, Case study. Original: [https://clickhouse.com/blog/building-clickhouse-cloud-from-scratch-in-a-year](https://clickhouse.com/blog/building-clickhouse-cloud-from-scratch-in-a-year)

## Summary

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. Control Plane and Data Plane are decoupled by a REST API façade plus SQS/PubSub for async events. Key infrastructure choices were managed Kubernetes (EKS) over kOps, Cilium over Calico for eBPF-based network isolation, Istio/Envoy SNI routing to get around per-account NLB limits, and shared S3 buckets with per-service subpaths to avoid bucket limits. Auto-scaling uses a Knative-style idler that suspends idle pods and a custom scaler with disruption budgets suited to stateful services. Object storage forced extra work on caching, prefetching and write-cost optimization.

Written by swe.quest, not by the author.

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

## Topics

- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)
- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Multi-tenancy](https://swe.quest/tags/multi-tenancy.md) (Architecture & design)

## Prerequisites

- Kubernetes basics ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- object storage like S3 ([easy posts on Storage systems](https://swe.quest/tags/storage-systems.md?difficulty=easy))
- OLAP databases ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))

## Keywords

ClickHouse Cloud, Kubernetes, Amazon S3, Cilium, Istio, Envoy, Amazon SQS, Knative

## Related posts

- [Building ClickHouse BYOC (Bring Your Own Cloud) on AWS](https://swe.quest/articles/building-clickhouse-byoc-bring-your-own-cloud-on-aws-c91a130e01901112.md): ClickHouse · 2025-03-12 · Medium · 13 min read · Cloud platforms, Kubernetes, Identity & auth, Networking, Multi-tenancy
  ClickHouse BYOC on AWS splits a ClickHouse-hosted management plane from a data plane EKS cluster in the customer's VPC, provisioned automatically with CloudFormation and Crossplane.
- [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.
- [Building ClickHouse Cloud on Microsoft Azure](https://swe.quest/articles/building-clickhouse-cloud-on-microsoft-azure-86802b5b3f00450d.md): ClickHouse · 2024-06-25 · Medium · 15 min read · Cloud platforms, Kubernetes, Multi-tenancy, Networking, Scaling
  ClickHouse Cloud's Azure data plane reuses its CSP-neutral design (AKS, Blob Storage, VNETs, Entra ID, managed Cilium) but had to adapt to several Azure-specific constraints.
- [Introducing Warehouses: Compute-compute separation in ClickHouse Cloud](https://swe.quest/articles/introducing-warehouses-compute-compute-separation-in-clickhouse-cloud-1fc38498daa39db3.md): ClickHouse · 2025-01-27 · Medium · 10 min read · Analytics & OLAP, Multi-tenancy, Cloud platforms, Distributed databases
  ClickHouse Cloud Warehouses let multiple services, each with its own endpoint, compute nodes, sizing, idling and network access rules, read and write the same data, isolating workloads such as ingestion, BI dashboards and ad-hoc analysis.
- [Building a Distributed Cache for S3](https://swe.quest/articles/building-a-distributed-cache-for-s3-a80fc6f3eb61cb72.md): ClickHouse · 2025-05-28 · Medium · 19 min read · Caching, Analytics & OLAP, Storage engines, Cloud platforms, Performance engineering
  ClickHouse Cloud adds a distributed cache that turns the per-node filesystem cache into a shared network service, so every compute node can read hot table data that any other node has fetched.

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)
