---
title: "How Bullet uses ClickHouse Cloud to give DeFi's fastest exchange real-time analytics"
description: "Bullet, a Rust-based DeFi perpetuals exchange running as an app-specific rollup on Solana with ~500μs p50 order processing, indexes 150M+ rows per hour of sequencer events into ClickHouse Cloud for trade history, real-time analytics and monitoring."
url: "https://swe.quest/articles/how-bullet-uses-clickhouse-cloud-to-give-defi-s-fastest-exchange-real-time-2e306d9fa945673c"
canonical: "https://clickhouse.com/blog/bullet-real-time-analytics"
source: "ClickHouse"
published: "2026-07-15"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["analytics","data-pipelines","databases","payments"]
---

# How Bullet uses ClickHouse Cloud to give DeFi's fastest exchange real-time analytics

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-07-15, 9 min read, Case study. Original: [https://clickhouse.com/blog/bullet-real-time-analytics](https://clickhouse.com/blog/bullet-real-time-analytics)

## Summary

Bullet, a Rust-based DeFi perpetuals exchange running as an app-specific rollup on Solana with ~500μs p50 order processing, indexes 150M+ rows per hour of sequencer events into ClickHouse Cloud for trade history, real-time analytics and monitoring. Events flow from a Rust WebSocket indexer through Kafka (AWS MSK), where Redpanda Connect classifies and routes them into per-event-type ClickHouse tables; ReplacingMergeTree keyed on event number and transaction hash makes the pipeline idempotent so reindexing and backfills deduplicate automatically. Moving off Databricks removed an hourly-batch-to-DynamoDB serving layer, cut query latency from 10-15 seconds to milliseconds, and replaced a 20-30 minute leaderboard cron job with a refreshable materialized view running every 10 minutes. Data freshness improved from 1-2 hours to under 5 seconds at comparable cost with 1,000x more data.

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)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [Payments & fintech](https://swe.quest/tags/payments.md) (Domains)

## Prerequisites

- Kafka basics ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))
- columnar databases ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))
- materialized views

## Keywords

ClickHouse Cloud, ReplacingMergeTree, Databricks, Kafka, Redpanda Connect, DynamoDB, Solana, Bullet

## Related posts

- [How FabFunnel powers real-time marketing analytics with ClickHouse Cloud](https://swe.quest/articles/how-fabfunnel-powers-real-time-marketing-analytics-with-clickhouse-cloud-693f5ffb0f0b9887.md): ClickHouse · 2025-11-20 · Medium · 5 min read · Analytics & OLAP, Data pipelines, MySQL, Ads, Performance engineering
  FabFunnel moved its marketing analytics off a normalized MySQL reporting stack, where month-long queries took 11 seconds and year-long reports crashed browsers due to client-side merges, to ClickHouse Cloud.
- [Appcues delivers personalized customer engagement with ClickHouse Cloud](https://swe.quest/articles/appcues-delivers-personalized-customer-engagement-with-clickhouse-cloud-70117f941c9e140c.md): ClickHouse · 2026-06-18 · Medium · 8 min read · Analytics & OLAP, Databases, Performance engineering, Cost optimization
  Appcues moved its customer-facing product analytics and segmentation from Snowflake plus Airflow rollups to ClickHouse Cloud, covering 1.31 PB of data and over 1 billion user profiles.
- [How Fountain rebuilt its data plane on ClickHouse Cloud to power Cue, the Frontline Superintelligence](https://swe.quest/articles/how-fountain-rebuilt-its-data-plane-on-clickhouse-cloud-to-power-cue-the-0dccb4dc5f23d9f5.md): ClickHouse · 2026-09-22 · Medium · 9 min read · Analytics & OLAP, Data pipelines, Event-driven architecture, Multi-tenancy, AI agents
  Fountain replaced a multi-vendor batch pipeline (third-party replication to S3/Iceberg, then BigQuery) with ClickPipes CDC streaming Postgres and MongoDB directly into ClickHouse Cloud, cutting analytics freshness from three hours to under two minutes, with most queries sub-second, at about 66% lower cost.
- [How ClickHouse Cloud enabled LaunchDarkly to build and ship features faster](https://swe.quest/articles/how-clickhouse-cloud-enabled-launchdarkly-to-build-and-ship-features-faster-0e4ac03aed14f7e6.md): ClickHouse · 2026-01-22 · Medium · 10 min read · Analytics & OLAP, Data pipelines, Observability, Multi-tenancy, Cloud platforms
  LaunchDarkly replaced Kinesis/Flink/Lambda streaming pipelines and an S3/Parquet/Athena batch warehouse with ClickHouse Cloud.
- [Data Hive: The story of beehiiv’s journey from Postgres to ClickHouse](https://swe.quest/articles/data-hive-the-story-of-beehiiv-s-journey-from-postgres-to-clickhouse-467867cb2bebb87b.md): ClickHouse · 2024-08-21 · Easy · 6 min read · Analytics & OLAP, Databases, PostgreSQL, Stream processing, Queues & messaging
  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.

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)
