clickhouse-reference-architecture

Featured

Production reference architecture for ClickHouse-backed applications — project layout, data flow, multi-tenant patterns, and operational topology. Use when designing new ClickHouse systems, reviewing architecture, or establishing standards for ClickHouse integrations. Trigger: "clickhouse architecture", "clickhouse project structure", "clickhouse design", "clickhouse multi-tenant", "clickhouse reference".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# ClickHouse Reference Architecture ## Overview Production-grade architecture for ClickHouse analytics platforms covering project layout, data flow, multi-tenancy, and operational patterns. ## Prerequisites - Understanding of ClickHouse fundamentals (engines, ORDER BY, partitioning) - TypeScript/Node.js project ## Instructions ### Step 1: Project Structure ``` my-analytics-platform/ ├── src/ │ ├── clickhouse/ │ │ ├── client.ts # Singleton client with health checks │ │ ├── schemas/ # SQL DDL files (source of truth) │ │ │ ├── 001-events.sql │ │ │ ├── 002-users.sql │ │ │ └── 003-materialized-views.sql │ │ ├── queries/ # Named query functions │ │ │ ├── events.ts │ │ │ ├── users.ts │ │ │ └── dashboards.ts │ │ └── migrations/ # Schema migrations │ │ ├── runner.ts │ │ └── 001-add-country.sql │ ├── ingestion/ │ │ ├── webhook-receiver.ts # HTTP webhook endpoint │ │ ├── kafka-consumer.ts # Kafka consumer (if applicable) │ │ └── buffer.ts # Insert batching buffer │ ├── api/ │ │ ├── routes.ts # API endpoints │ │ └── middleware.ts # Auth, rate limiting │ └── jobs/ │ ├── daily-rollup.ts # Scheduled aggregations │ └── cleanup.ts # TTL enforcement ├── tests/ │ ├── unit/ │ └── integration/ ├── docker-compose.yml # Local ClickHouse ├── init-db/ # Docker init scripts └──...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category