Subscription analytics at scale - Canva Engineering Blog
Canva rebuilt its Canva Pro subscription analytics after outgrowing Profitwell, whose proprietary LTV formula and limited segmentation couldn't handle per-country, per-plan breakdowns. The team redesigned core subscription tables to join subscription, billing, profile, attribution and event data, migrated Presto/Hive tables to Snowflake, and used dbt for shared UDFs and schema/data tests, with Mode and Looker for self-serve reporting. Voluntary churn is forecast per country, platform and plan with the Fader-Hardie beta-geometric model, which is interpretable and produced adequate forecasts from just two months of retention data. A logistic-regression trial-to-paid predictor is in production, and the team found most gains came from data quality rather than model choice.
Related posts
- Measuring Commercial Impact at Scale at Canva
Canva Engineering mediumAdeptCanva's IMPACT app is an internal Streamlit-in-Snowflake tool that standardizes how experiment uplifts translate into company-level MAU and ARR, using logic aligned with the central finance model. The core method scales local uplifts by the exposed share of the user base: a 20% lift on a surface used by 10% of users counts as 2% company-wide. The architecture combines modular Streamlit components (functions, reusable statistical and MAU/ARR modules, SQL query templates), an app-owned database for results and session analytics, scheduled Snowpark jobs that precompute monthly forecast inputs, Cortex LLM summaries, and parallel queries via the Python connector's execute_async(). The result cut per-experiment analysis from 6+ hours to under 10 minutes, and the team moved to a PR-based development workflow as more contributors joined.
- Building a cost-effective analytics stack with Modal, dlt, and dbt
Modal mediumAdept
Modal runs its whole analytics stack on Modal: dlt loads data from a Postgres read replica into Snowflake, dbt transforms it, and GitHub Actions handles CI/CD. dlt replaced hand-written psycopg2 code and removes manual schema definitions, Snowflake DDL and error-prone incremental logic. One daily job loaded about 1.4M rows in 47 seconds for fractions of a cent, versus an estimated $4,738/month on Fivetran. Also covered: fanning out per-table jobs with starmap, an "Activity Schema lite" dbt modeling approach with window-function concurrency queries, and a cicd.py script that discovers and deploys Modal apps from comment flags.
- Appcues delivers personalized customer engagement with ClickHouse Cloud
ClickHouse mediumAdept
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. Events flow through Kafka into a deduplicating consumer. Materialized views replaced the Airflow pre-aggregation jobs, and SharedReplacingMergeTree with argMax instead of FINAL resolves the latest profile state. Lightweight deletes in ClickHouse 25.6 cleared a GDPR deletion backlog. P95 query latency fell from 20+ seconds to under 2, ingestion-to-query latency dropped from 10+ minutes to about 5 seconds, and analytics spend fell 23%.
- The foundations of Canva’s continuous data platform with Snowpipe Streaming
Canva Engineering mediumAdeptCanva 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.
- Better Analytics at Scale with Trackingplan and ClickHouse
ClickHouse mediumAdept
Trackingplan, which tests web, mobile and backend analytics by sampling events sent to tools like Google Analytics and Segment, moved from DynamoDB with PySpark-precomputed statistics to ClickHouse Cloud so it could answer unforeseen ad hoc queries on raw data. After evaluating Snowflake, BigQuery, Redshift and Athena, the team found ClickHouse 20x faster than Athena and cheaper than the pay-per-scan options for a continuous query workload. Materialized views, backfilled via INSERT INTO SELECT, precompute the common dashboard statistics. Customer-ID ordering keys handle multi-tenancy and ad hoc queries across about 30 billion rows growing 400% per year, and Map/Array types hold dynamic properties.