Rebuilding Guardian: How Pinterest Upgraded Its Real-Time Abuse Platform to Modern Infrastructure…
Pinterest rebuilt Guardian, its real-time abuse detection platform, from a monolithic in-house system into a modular V2 that separates interactive analytics, continuous action evaluation and historical replay. A thin ANTLR4-based translator keeps a single GSQL V2 interface for users, compiling queries to StarRocks SQL for investigation and to FlinkSQL for async actions. Stream splitting and pruning of enriched events into event-family substreams cut indexed column scale from O(20K) to O(K). StarRocks duplicate-key tables, sort keys and Bloom filter indexes bring some lookups to sub-second latency. Replay runs on the same FlinkSQL execution model over Iceberg datasets, which also moves data into governed storage.
Related posts
- Fast, Feature Rich and Mutable : ClickHouse Powers Darwinium's Security and Fraud Analytics Use Cases
ClickHouse easyNovice
Darwinium, a digital risk and fraud platform, chose ClickHouse to back interactive security and fraud analytics over large, wide, long-retention event data. Its reasons were simpler ingestion than immutable HDFS-style pipelines, AggregatingMergeTree tables that maintain rollups without a separate pipeline, and a single server absorbing thousands of writes per second on ~3k-column rows at under 5% CPU. Map, Array and JSON types absorb fast-changing model signals without schema churn, and tiered SSD-to-S3 retention, sharding and replication handle cost and availability. Group-by queries on a 40M-row, ~3k-column table under varying analyst concurrency are charted as evidence of sub-second interactive performance.
- Front-end observability at scale: How OpenReplay captures billions of daily events in real time with ClickHouse
ClickHouse easyNovice
OpenReplay, a self-hosted session replay and product analytics platform, moved behavioral event storage from Postgres to ClickHouse. Session search dropped from roughly 3–10 seconds to about one second, and ~1 TB event tables compressed to 1–2 GB. ClickHouse's TTL replaced weekend-long delete-and-vacuum retention jobs. A chain of materialized views off a single flat events table cut pipeline changes from two days to half a day, and native JSON makes custom event properties queryable as columns. Each customer deployment runs on a single vertically scaled ClickHouse instance, ingesting up to billions of events and ~6 TB per day, because avoiding sharding keeps self-hosted operations lean.
- Goldsky - A Gold Standard Architecture with ClickHouse and Redpanda
ClickHouse mediumAdept
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.
- How ClickHouse Cloud enabled LaunchDarkly to build and ship features faster
ClickHouse mediumAdept
LaunchDarkly replaced Kinesis/Flink/Lambda streaming pipelines and an S3/Parquet/Athena batch warehouse with ClickHouse Cloud. Raw events are now queried directly, and materialized views are added only where needed. The system ingests about 6 PB/month of uncompressed JSON through an HTTP API, S3 protobuf batches, Lambda-converted Parquet and INSERT INTO SELECT. Data is fresh in about 30 seconds with roughly 100 days of retention, high-cardinality per-user analytics became practical, and seven product features now run on it. Lessons learned: don't coarsen ORDER BY keys, drop OLTP habits (for example, use two-stage queries for latest-N), and plan for workload isolation as adoption outpaces the platform team. Next steps are ingest-time joins for Release Guardian regression detection and migrating Elasticsearch workloads.
- Data Hive: The story of beehiiv’s journey from Postgres to ClickHouse
ClickHouse easyNovice
beehiiv replaced its Postgres-and-Ruby-queue analytics system, which struggled with billions of email events and had multi-hour reporting delays, with a Kafka-fed ClickHouse Cloud pipeline. The design leans on ReplacingMergeTree for idempotent ingestion and event replay, dictionaries to enrich inserts without joins, ephemeral columns for intermediate calculations, materialized views as pre-aggregated shadow tables with alternate sort keys, and window functions for analytics. After six months the system held over 33 billion raw events in 1.5 TiB compressed (13 TiB uncompressed), with 22 ms median and 85 ms average query times. Creators now see send performance within seconds instead of hours.