ChistaDATA · Real-Time Analytics Engineering · 100% Open-Source ClickHouse

Real-Time Analytics with ClickHouse, Engineered for Sub-Second Insight at Petabyte Scale

Real-time analytics with ClickHouse turns high-velocity event streams into decisions while they still matter. ChistaDATA architects, tunes and operates the complete analytics tier, from Kafka ingestion and MergeTree schema design to sharding, replication, disaster recovery and 24×7×365 support, so that query latency holds as data volume and concurrency grow.

15 minSeverity 1 response SLA, around the clock
24×7×365Senior ClickHouse engineering coverage
200+Organizations served by the ClickHouse practice
11Global offices behind one 24×7 engineering bench
100%Open-source ClickHouse, zero vendor lock-in

Executive summary

Real-time analytics with ClickHouse at a glance

Most enterprises already collect the events that would change a decision. What they lack is a real-time analytics tier that can answer within the decision window, at production concurrency, without a cost curve that grows faster than the business. ClickHouse closes that gap when it is engineered as a system rather than installed as a database.

  1. Latency is an architecture outcome, not a database setting.Sort keys, partitioning, ingestion batching and replica placement decide p95 and p99 long before any query is tuned.
  2. Freshness is a budget that must be measured stage by stage.Event-to-insight time is the sum of six stages, from producer to query, and each stage has its own control knob and its own system table.
  3. Durable performance comes from operating discipline.Quarterly capacity reviews, restore and failover drills, and SLO-based alerting keep a real-time analytics platform fast in year three, not only at launch.

The imperative

Why real-time analytics with ClickHouse outperforms the row stores it replaces

ClickHouse is an open-source, column-oriented database built for analytical workloads that row-oriented systems cannot sustain. A query about three columns reads three columns, not entire rows, and four engineering properties in its core turn that storage model into sub-second answers over billions of rows.

01

Vectorized execution

Data is processed in column blocks with SIMD instructions, so one CPU instruction operates on many values. Aggregations stay inside CPU caches instead of iterating row by row.

02

Columnar compression

Contiguous columns compress well with LZ4 and ZSTD, and with specialized codecs such as Delta and DoubleDelta for time series. Less data on disk means less I/O per query.

03

Massively parallel processing

Each query fans out across every core on a node and, through Distributed tables, across every shard. Capacity grows by adding hardware rather than rewriting applications.

04

Ingestion without query impact

MergeTree tables accept continuous inserts while serving concurrent queries, and background merges keep parts compact. Streams become queryable within seconds.

The speed of ClickHouse is real, but it is conditional. It belongs to teams whose sort keys match their query log and whose ingestion is batched to match their merge capacity.

That condition is where most production estates struggle. A copied partition key, a sort key ordered by insert time, or thousands of tiny inserts per second each erase the advantage that columnar storage was meant to provide. The ClickHouse architecture documentation describes the engine internals; the sections below describe how ChistaDATA engineers a real-time analytics platform around them.

Reference architecture

The real-time analytics architecture ChistaDATA engineers on ClickHouse

Event streams enter through Kafka, land in ClickHouse through Kafka engine tables, the Kafka Connect sink or async inserts, replicate across shards under ClickHouse Keeper coordination, tier cold data to object storage, and serve dashboards and APIs. One pipeline, instrumented end to end by a single Data SRE control plane.

Real-time analytics with ClickHouse reference architecture: Kafka ingestion, ReplicatedMergeTree shards, ClickHouse Keeper, tiered storage and serving layer
Exhibit 1. Illustrative reference architecture. Shard, replica, topic and storage-tier counts are sized per workload during architecture engagements. Release coverage: ChistaDATA delivers consulting, 24×7 support, managed services and remote DBA on ClickHouse 26.10 (latest stable release, October 2026), 26.8 LTS (current long-term-support release, August 2026, supported to August 2027) and 26.3 LTS (supported to March 2027), plus every supported stable release in between, with upgrade engineering for 24.x and 25.x estates, including 25.8 LTS, which reached end of support in August 2026. Last verified November 2026.

Design principles behind the exhibit

In a production real-time analytics pipeline, sources and transport are decoupled so that a replay never touches production producers. Kafka retains a replayable window, and each target table owns its own consumer group, which allows a single table to be rebuilt without disturbing the others.

Inside the cluster, a Distributed table routes reads and fans out queries, while ReplicatedMergeTree keeps three copies of each shard consistent through the Keeper replication log. TTL rules move ageing partitions from NVMe to object storage, so hot data stays on fast disks and retention cost follows usage.

Ingestion paths and when each fits

PathBest fitDelivery semantics
Kafka engine + materialized viewIn-server consumption, simple transformsAt-least-once
ClickHouse Kafka Connect sinkExisting Connect estates, strict deduplicationExactly-once with Keeper state
Async insertsMany small producers over HTTP or nativeServer-side batching

Engineering appendix · Streaming ingestion DDL

-- Target table: explicit engine parameters, codecs and tiering
CREATE TABLE analytics.events_local ON CLUSTER '{cluster}'
(
    event_time  DateTime64(3)          CODEC(Delta, ZSTD(1)),
    tenant_id   UInt32,
    event_type  LowCardinality(String),
    user_id     UInt64,
    payload     String                 CODEC(ZSTD(3))
)
ENGINE = ReplicatedMergeTree('/clickhouse/tables/{shard}/analytics/events_local', '{replica}')
PARTITION BY toYYYYMMDD(event_time)
ORDER BY (tenant_id, event_type, event_time)
TTL toDateTime(event_time) + INTERVAL 7 DAY TO VOLUME 'cold',
    toDateTime(event_time) + INTERVAL 395 DAY DELETE
SETTINGS storage_policy = 'hot_cold', index_granularity = 8192;

-- Kafka consumer table
CREATE TABLE ingest.events_queue ON CLUSTER '{cluster}'
(
    event_time  DateTime64(3),
    tenant_id   UInt32,
    event_type  LowCardinality(String),
    user_id     UInt64,
    payload     String
)
ENGINE = Kafka
SETTINGS kafka_broker_list       = '${KAFKA_BROKERS}',
         kafka_topic_list        = 'events',
         kafka_group_name        = 'ch_events_v1',
         kafka_format            = 'JSONEachRow',
         kafka_num_consumers     = 4,
         kafka_flush_interval_ms = 1000,
         kafka_handle_error_mode = 'stream';

-- Materialized view moves valid rows into the replicated table
CREATE MATERIALIZED VIEW ingest.events_mv ON CLUSTER '{cluster}'
TO analytics.events_local
AS
SELECT event_time, tenant_id, event_type, user_id, payload
FROM ingest.events_queue
WHERE length(_error) = 0;

-- Query entry point across all shards
CREATE TABLE analytics.events ON CLUSTER '{cluster}' AS analytics.events_local
ENGINE = Distributed('{cluster}', 'analytics', 'events_local', cityHash64(tenant_id));

The sort key leads with the column most queries filter on, not with time. kafka_num_consumers should not exceed topic partitions or physical cores. Placeholders such as ${KAFKA_BROKERS} are substituted at deploy time; never hardcode endpoints or credentials. Test every change on a staging copy of your own workload before production.

Maturity model

Where your real-time analytics platform sits today

Real-time analytics maturity is defined by three variables: how fresh the data is, how fast queries return, and how the platform is operated. Most estates move comfortably from stage one to stage two on a warehouse. The move to stage three is where ClickHouse earns its place, because seconds-level freshness and sub-second latency at concurrency require a different storage and ingestion model.

Real-time analytics maturity model: five stages from batch reporting to decision automation, with the ClickHouse inflection point
Exhibit 2. Real-time analytics maturity. Stage boundaries are qualitative classes, not guarantees.
STAGES 1–2

Reporting estates

Batch and micro-batch pipelines into a warehouse. Adequate for planning and analyst work; the constraint is freshness measured in minutes to hours.

STAGE 3

Operational analytics

Streaming ingestion and sub-second p95 for operations, fraud and SRE teams. This is the usual first ClickHouse milestone and the point where ingestion engineering matters most.

STAGES 4–5

Analytics as a product

Customer-facing, multi-tenant real-time analytics with contractual SLOs, then closed-loop automation feeding models and systems. Concurrency, isolation and error budgets dominate.

Latency budget

Real-time analytics latency is a budget, and every stage has an owner

Real-time analytics teams often tune the query and ignore the five stages before it. A freshness SLO of a few seconds is the sum of producer batching, consumer polling, insert batching, view transformation, replication and query execution. ChistaDATA measures each stage independently, so the budget is spent where the business gains most.

ClickHouse event-to-insight latency budget: six stages from Kafka produce to query, each with a control knob and a system table telemetry source
Exhibit 3. Segment widths are illustrative proportions only. Setting names reflect the current ClickHouse LTS; validate defaults on your server version.

Engineering appendix · Measuring the budget

-- Query stage: p95 and p99 by five-minute window across all replicas
SELECT
    toStartOfFiveMinutes(event_time)  AS window_start,
    count()                           AS queries,
    quantile(0.95)(query_duration_ms) AS p95_ms,
    quantile(0.99)(query_duration_ms) AS p99_ms,
    round(avg(read_rows))             AS avg_rows_read
FROM clusterAllReplicas('${CH_CLUSTER}', system.query_log)
WHERE type = 'QueryFinish'
  AND query_kind = 'Select'
  AND event_date >= today() - 1
GROUP BY window_start
ORDER BY window_start DESC
LIMIT 24;

-- Replicate stage: replicas lagging or read-only
SELECT database, table, replica_name, absolute_delay, queue_size, is_readonly
FROM system.replicas
WHERE absolute_delay > 30 OR is_readonly
ORDER BY absolute_delay DESC;

-- Insert stage: partitions accumulating too many active parts
SELECT database, table, partition, count() AS active_parts
FROM system.parts
WHERE active
GROUP BY database, table, partition
ORDER BY active_parts DESC
LIMIT 10;

Thresholds such as 30 seconds of replica delay are starting points to agree with the business, not universal limits. Run diagnostic queries on a replica that is not serving latency-critical traffic.

Value drivers

From engineering lever to measurable real-time analytics value

Every recommendation in a ChistaDATA real-time analytics engagement is tied to a KPI and to the system table that proves it moved. The value driver tree below is the structure behind performance audits, architecture reviews and quarterly business reviews alike.

Real-time analytics with ClickHouse value driver tree: performance, cost, resilience and velocity levers mapped to KPIs and system tables
Exhibit 4. Value driver tree. KPIs are agreed per engagement and baselined before any change is made.
DriverTypical finding in productionEngineering responseProof point
PerformanceSort key ordered by time while queries filter by tenantReorder the key; add a projection for the secondary access pathread_rows and p95 in system.query_log
Cost efficiencyDefault codecs on high-cardinality time series; all data on NVMeColumn-level codecs; TTL moves to object storageCompressed bytes in system.columns, bytes per volume
ResilienceTwo replicas and a Keeper ensemble co-located with ClickHouseThree replicas per shard; dedicated three-node KeeperReplica delay, measured RPO and RTO from drills
VelocitySchema changes applied by hand, node by nodeVersioned migrations with ON CLUSTER DDL and runbooksChange failure rate, MTTR

ClickHouse engineering services

Three disciplines that keep real-time analytics fast under load

Every real-time analytics engagement is led by senior ClickHouse engineers, documented in written, decision-grade deliverables, and validated against production telemetry rather than synthetic benchmarks.

01

Performance engineering and query optimization

Schema and sort-key design from the query log, skip indexes, projections and materialized views applied where measurement proves they pay back, and query profiling with EXPLAIN PIPELINE.

  • Cluster topology and capacity planning
  • MergeTree schema, sort key and partitioning
  • Codec selection balancing latency and cost
02

Scalability: sharding, replication and capacity

Distribution keys that keep data balanced, replica routing for read capacity, and capacity plans built bottom-up from measured ingestion velocity and query concurrency, then validated with workload replay.

  • Sharding and distribution-key design
  • Kubernetes orchestration on AWS, GCP, Azure
  • Object-storage tiering on S3, GCS, Azure Blob
03

High availability and disaster recovery

Three-replica shards, a hardened ClickHouse Keeper quorum, multi-zone or multi-region placement, verified backups to object storage, and quarterly restore and failover drills against agreed RPO and RTO.

  • Keeper quorum design and hardening
  • Cross-region replication and failover
  • Drill evidence for audit and risk teams

On-premise deployments

For organizations with their own data centers or strict data-residency mandates, ChistaDATA delivers hardware sizing, network architecture, security hardening and operating practices inside your infrastructure, with the same observability and SLA discipline as any cloud estate.

Cloud-native deployments

On AWS, Google Cloud and Microsoft Azure, ChistaDATA engineers compute and storage separation, Kubernetes-managed cluster lifecycle and integration with cloud monitoring and backup services. Because everything runs on open-source ClickHouse, moving between models later is a migration project, not a renegotiation.

AI observability

LLM and agent telemetry is a real-time analytics workload

Traces, token counts, cost per call and model-quality scores arrive as high-cardinality event streams, and the questions asked of them carry the same latency budget as any operational dashboard.

We engineer that tier on the reference architecture above. Spans from LLM and agent calls land through Kafka or async inserts into MergeTree tables sorted by service, model and time. Materialized views maintain per-model rollups for cost, latency and error rate, so drift and spend are read from rollups, not from raw spans. Retrieval runs beside it: embeddings sit in the same cluster, with tenant and time filters in the sort key, under the same SLO discipline.

One limit applies. A small corpus searched only by similarity, with no analytics beside it, is a vector-store workload, and we say so.

Engagement model

How a real-time analytics with ClickHouse engagement runs

Four phases, one accountable engineering team, and a written deliverable at the close of each phase. Customers can enter at any phase: many begin with a ClickHouse performance audit, others with a migration to ClickHouse or a managed services contract.

ChistaDATA ClickHouse engagement model: assess, architect, build and migrate, operate, with deliverables per phase
Exhibit 5. Engagement model. Phase durations depend on schema complexity, pipeline count and cutover constraints.
Service levelSeverity 1Severity 2Severity 3Severity 4
Initial response, 24×7×36515 minutes12 hours24 hours48 hours

Details of coverage, escalation and named engineers are set out in ClickHouse enterprise support and the pre-engagement questionnaire.

Industry use cases

Where sub-second real-time analytics changes the business outcome

The same real-time analytics architecture of streaming ingestion, columnar storage and distributed execution appears wherever the value of a data point decays within seconds.

Financial services

Fraud, risk and market analytics

Transaction scoring against live patterns, intraday risk and exposure views, and high-frequency market data analysis inside the decision window.

E-commerce and retail

Inventory, pricing and attribution

Stock visibility across locations, recommendations fed by live behaviour, and funnel analytics fast enough for same-session decisions.

Telecommunications

Network and CDR analytics

Telemetry and call detail records analysed at line rate for fault detection, service-quality monitoring and capacity planning.

Media and gaming

Audience and player analytics

Engagement and monetization dashboards, behavioural anti-cheat detection on live game logs, and personalized content recommendations.

AdTech

Bidding and attribution

Bid-request analytics within auction windows, multi-touch attribution across long journeys, and audience segments refreshed continuously.

SaaS and observability

Product analytics and usage billing

Feature adoption analytics, log and metrics ingestion for operations, and accurate usage reporting for billing. See also database warehousing support.

Why ChistaDATA

An engineering partner, measured by production outcomes

Most teams adopt ClickHouse, see the raw speed, and then reach production with a sort key that fights the query log, partitioning copied from a tutorial, and a Keeper ensemble sharing disks with the database. ChistaDATA exists to engineer the durable real-time analytics platform that keeps working when data grows tenfold.

Every customer receives a named principal engineer and a technical account manager. Every recommendation ships as a written document with the measurements that justify it. Every quarter, architecture, capacity and DR posture are reviewed against production telemetry. Learn the fundamentals in Understanding ClickHouse and the MergeTree engine deep dive.

What customers getHow it is evidenced
Deep ClickHouse benchSenior engineers on every engagement and on call
Tailored architectureDecision records sized to your workload
End-to-end lifecycleAssess, architect, migrate and operate under one contract
Measured outcomesBefore and after p95, p99 and cost per query
No lock-in100% open-source ClickHouse, no license fees
AI-ready foundationVector search and retrieval on the same platform

Frequently asked questions

Real-time analytics with ClickHouse: engineering FAQ

Why is ClickHouse faster than traditional databases for real-time analytics?

ClickHouse stores data column by column, executes queries over vectorized blocks with SIMD instructions, and parallelizes work across every CPU core and every shard. A query reads only the columns it references, and columnar compression shrinks those columns further, so analytical scans that take minutes on row-oriented databases typically return in sub-second time on ClickHouse. The exact gain depends on schema, sort key and hardware, which is why ChistaDATA measures it per workload from system.query_log rather than quoting a generic multiplier.

Can ClickHouse ingest streaming data while serving queries?

Yes. MergeTree tables accept continuous inserts while serving concurrent analytical queries, and background merges consolidate parts without blocking readers. Kafka engine tables with materialized views, the ClickHouse Kafka Connect sink, or async inserts move event streams into queryable tables within seconds. The engineering work is keeping part counts, merge backlog and ingestion lag inside agreed limits, measured through system.parts, system.merges and system.kafka_consumers.

How does ChistaDATA make ClickHouse highly available?

A minimum of three replicas per shard on ReplicatedMergeTree, a hardened three-node ClickHouse Keeper quorum, replica placement across availability zones or regions, automated and verified backups to object storage, and 24×7 monitoring. The design is validated through quarterly restore and failover drills against RPO and RTO targets agreed with the business.

Does ChistaDATA support both on-premise and cloud-native deployments?

Yes. ChistaDATA runs on-premise clusters for regulated and data-residency-bound environments, and cloud-native estates on AWS, Google Cloud and Microsoft Azure with Kubernetes orchestration, compute and storage separation, and object-storage tiering. Everything runs on 100% open-source ClickHouse with zero vendor lock-in.

Which industries run real-time analytics with ClickHouse?

Financial services, e-commerce and retail, telecommunications, media and streaming, gaming, AdTech, and SaaS and observability platforms: any business where the value of a data point decays within seconds or minutes.

How fast can ChistaDATA respond to a ClickHouse incident?

The enterprise SLA is a fifteen-minute response for Severity 1 incidents, 24x7x365, from senior ClickHouse engineers who already hold the context of your cluster. Severity 2, 3 and 4 response targets are 12, 24 and 48 hours.

How long does a migration to ClickHouse for real-time analytics take?

A typical migration from Redshift, Snowflake, BigQuery, Druid or Elasticsearch runs six to sixteen weeks, depending on schema complexity, pipeline count and cutover constraints. ChistaDATA runs CDC-based dual operation alongside the legacy platform and cuts over only after workload replay validates latency and correctness.

What does ChistaDATA monitor on a ClickHouse cluster?

Query latency percentiles from system.query_log, ingestion throughput and lag, replica delay and read-only state from system.replicas, part counts and merge backlog from system.parts and system.merges, mutation progress from system.mutations, ClickHouse Keeper quorum health, and disk and object-storage utilization, all with alerting tied to agreed SLOs.

Next step

Engineer the real-time analytics tier your business depends on

Whether the next milestone is a migration off Redshift, Snowflake or BigQuery, a real-time analytics latency program against a strict SLO, or a fully managed ClickHouse contract, a fifteen-minute conversation with a ChistaDATA principal engineer is enough to know whether the fit is right.

ChistaDATA Inc. · San Francisco Bay Area and eleven global offices · 24×7×365 ClickHouse engineering operations. Configuration examples on this page are illustrative; test every change against your own workload before applying it to production, and maintain a verified disaster recovery posture.