Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Canva Engineering 12 min read Case study mediumAdept

The foundations of Canva’s continuous data platform with Snowpipe Streaming

Canva replaced AWS Data Firehose, which accounted for nearly half its product analytics platform cost because of 5 KB minimum record billing, with Snowpipe Streaming fed directly from Kinesis Data Streams via the Kinesis Client Library. One Snowpipe channel maps to each Kinesis shard. KCL shard stealing invalidates every channel on a shared client, so Canva runs one Snowflake client per shard, trading compression and per-client cost for reliability, and uses a LeaseCoordinator workaround to drop unhealthy leases. After six months and 20 PiB processed, cloud spend fell 45% and time-to-query dropped to about 10 minutes, with a 5-minute MAX_CLIENT_LAG and larger buffers recommended for lower costs.

Assumes: AWS Kinesis Data StreamsSnowflake basicsdata ingestion pipelines

Related posts

  • How AdGreetz Processes Millions of Daily Ad Impressions with ClickHouse Cloud

    ClickHouse easyNovice

    AdGreetz moved its ad impression analytics from AWS Athena to Snowflake and then to ClickHouse Cloud, citing roughly six times lower cost than a small Snowflake standard plan and sub-second rather than multi-second queries. The pipeline ingests 5-6 million impressions a day, peaking at 20-30 million, through Cloudflare Workers. The workers acknowledge each event, enrich it in the background, and insert JSON over HTTP using async inserts, so no Kafka buffering layer is needed. Data is partitioned by time, aggregated with materialized views, isolated per customer with filtering views, and served to partners through Metabase dashboards.

  • Why Snowflake can’t match ClickHouse Cloud for real-time analytics

    ClickHouse mediumAdept

    In the CostBench continuous-ingestion benchmark (113.2 billion stock quotes streamed toward 1M rows/s while aggregate and drill-down queries ran on the freshest data), ClickHouse Cloud scored 412× better end-to-end performance per dollar than Snowflake. It led on preparation cost ($28.69 vs $79.42), normalized query cost (~$0.05 vs $15.99) and accumulated query runtime (1.03 minutes vs 2.13 hours). ClickHouse's async inserts sort raw data and update incremental materialized views from the same insert block on a 4-core HA ingest service, so summaries have zero lag. Snowflake splits this across Snowpipe Streaming and a serverless, non-configurable MV refresh, which leaves pre-aggregations about 1.4–2 minutes behind and pushes more work onto queries.

  • How Canva achieved 10x faster search and 70% lower costs with ClickHouse

    ClickHouse mediumAdept

    Canva moved tracing and logging (about 3 million spans and 3 million logs per second) onto a self-managed ClickHouse cluster of 5 shards × 3 replicas on Kubernetes. It reached a 14x compression ratio, cut costs by about 70%, and brought P90 trace search down from 30s to 2.5s. The ingestion gains came from batching roughly 200k spans per insert in OpenTelemetry collectors and writing straight to local tables. Search speed came from a sorting key aligned with Jaeger's filters, daily partitions, a materialized-view lookup table keyed by trace ID, and a client-side sliding search window. Logs flow through Kinesis and Lambda using tuned async inserts, with ngram Bloom filters on flattened log strings for free-text search and a custom DSL query gateway.

  • Why ClickHouse Cloud wins at real-time analytics

    ClickHouse mediumAdept

    In the CostBench streaming benchmark (113.2 billion stock quotes ingested at about 1M rows/s while queries ran), ClickHouse Cloud scored 412× to 1,996× better end-to-end performance per dollar than Snowflake, Databricks, BigQuery and Redshift Serverless. Its lead comes from sorting data and computing incremental materialized-view pre-aggregations in memory at insert time, so summaries never lag behind raw data. Background part merges then keep combining the mergeable aggregation states. Ingestion and merging are parallelized across nodes, cores and SIMD lanes, and a 4-core ingest service prepared all the data for $28.69 with 14.4× compression, while the other systems needed separate asynchronous refresh stages that lagged and cost $79–$696.

  • 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.

The quest for software engineering knowledge.

Look:
Layout: