---
title: "Goldsky - A Gold Standard Architecture with ClickHouse and Redpanda"
description: "Goldsky streams blockchain data to potentially thousands of customer ClickHouse clusters by indexing chains into per-data-type Redpanda topics (Avro, infinite retention via tiered storage), applying per-customer FlinkSQL filters, joins and aggregations in stream at up to 500k events/sec, and delivering results to ClickHouse."
url: "https://swe.quest/articles/goldsky-a-gold-standard-architecture-with-clickhouse-and-redpanda-347e225c0fe7c7a7"
canonical: "https://clickhouse.com/blog/clickhouse-redpanda-architecture-with-goldsky"
source: "ClickHouse"
published: "2023-12-20"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["analytics","stream-processing","messaging","multi-tenancy","data-pipelines"]
---

# Goldsky - A Gold Standard Architecture with ClickHouse and Redpanda

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2023-12-20, 9 min read, Case study. Original: [https://clickhouse.com/blog/clickhouse-redpanda-architecture-with-goldsky](https://clickhouse.com/blog/clickhouse-redpanda-architecture-with-goldsky)

## Summary

Goldsky streams blockchain data to potentially thousands of customer ClickHouse clusters by indexing chains into per-data-type Redpanda topics (Avro, infinite retention via tiered storage), applying per-customer FlinkSQL filters, joins and aggregations in stream at up to 500k events/sec, and delivering results to ClickHouse. Backfills use a custom hybrid Flink source that reads history from ClickHouse and increments from Redpanda. The main ClickHouse lesson was tuning ReplacingMergeTree for duplicates and updates: emulating PREWHERE, partitioning, limiting FINAL threads and customer-specific ORDER BY keys. The Base chain dataset (over 1B trace rows, roughly 1 TiB uncompressed) is publicly queryable at sql.clickhouse.com.

Written by swe.quest, not by the author.

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

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Stream processing](https://swe.quest/tags/stream-processing.md) (Data & databases)
- [Queues & messaging](https://swe.quest/tags/messaging.md) (Backend & APIs)
- [Multi-tenancy](https://swe.quest/tags/multi-tenancy.md) (Architecture & design)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)

## Prerequisites

- Kafka topics and consumers ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))
- ClickHouse MergeTree engines ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- stream processing basics ([easy posts on Stream processing](https://swe.quest/tags/stream-processing.md?difficulty=easy))

## Keywords

ClickHouse, Redpanda, Apache Flink, FlinkSQL, ReplacingMergeTree, Goldsky, Base blockchain, Avro

## Related posts

- [“A generational leap”: How Trio unified payment analytics and cut storage by 88% with ClickHouse Cloud](https://swe.quest/articles/a-generational-leap-how-trio-unified-payment-analytics-and-cut-storage-by-88-b4c6dd92d9387fc0.md): ClickHouse · 2026-04-17 · Medium · 7 min read · Analytics & OLAP, Payments & fintech, Stream processing, Data pipelines
  Trio, a Brazilian payments fintech processing 243M+ payments in H1 2025 and over 1B events a day, consolidated legacy and active systems into ClickHouse Cloud as a single analytical source of truth for reconciliation, compliance and dashboards.
- [Streamkap: An out-of-the-box CDC solution for ClickHouse](https://swe.quest/articles/streamkap-an-out-of-the-box-cdc-solution-for-clickhouse-fb75535a3b94ad24.md): ClickHouse · 2024-02-22 · Medium · 14 min read · Event-driven architecture, Analytics & OLAP, Data pipelines, Schema migrations
  Streamkap's ClickHouse connector streams change data capture from PostgreSQL, MySQL, SQL Server, Oracle and MongoDB into ClickHouse using Kafka, Debezium and Flink.
- [How Jump Trading uses ClickHouse with Iceberg for analytics](https://swe.quest/articles/how-jump-trading-uses-clickhouse-with-iceberg-for-analytics-1cafb9464ead1735.md): ClickHouse · 2026-07-30 · Medium · 6 min read · Analytics & OLAP, Data pipelines, Distributed databases, Performance engineering
  Jump Trading runs a self-managed, on-prem ClickHouse cluster of tens of nodes as the system of record for petabyte-scale trading logs, ingesting hundreds of TB per day with peaks of 10M rows/sec and a sub-20-second p99, reconciled daily for zero data loss.
- [ClickHouse vs BigQuery: Using ClickHouse to Serve Real-Time Queries on Top of BigQuery Data](https://swe.quest/articles/clickhouse-vs-bigquery-using-clickhouse-to-serve-real-time-queries-on-top-of-2c9e02d14f552560.md): ClickHouse · 2023-02-27 · Medium · 25 min read · Analytics & OLAP, Data pipelines, Cloud platforms, SQL
  ClickHouse can sit alongside BigQuery to serve sub-second, high-concurrency analytical queries for real-time applications, while BigQuery remains the warehouse for ad-hoc deep analysis.
- [Trillabit Utilizes the Power of ClickHouse for Fast, Scalable Results Within Their Self-Service, Search-Driven Analytics Offering](https://swe.quest/articles/trillabit-utilizes-the-power-of-clickhouse-for-fast-scalable-results-within-6137812e3149a41e.md): ClickHouse · 2023-01-30 · Easy · 6 min read · Analytics & OLAP, Databases, Data pipelines
  TrillaBit moved its search-driven BI platform from Apache Solr to ClickHouse after Solr proved weak at high-volume aggregation, compression, SQL maturity and joins, and chose ClickHouse over Snowflake on cost and the ability to self-host.

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)
