---
title: "Evolving the Backend Storage for Platform Metrics"
description: "Heroku migrated the time-series store behind MetaaS, its internal metrics service, from self-managed Apache Cassandra to AWS DynamoDB without user-visible impact."
url: "https://swe.quest/articles/evolving-the-backend-storage-for-platform-metrics-0fb82a7939c98396"
canonical: "https://www.heroku.com/blog/evolving-backend-storage-for-platform-metrics/"
source: "Heroku Engineering"
published: "2024-05-09"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["databases","distributed-databases","observability","cloud","schema-migrations"]
---

# Evolving the Backend Storage for Platform Metrics

A post on [Heroku Engineering](https://swe.quest/sources/heroku.md), published 2024-05-09, 6 min read, Case study. Original: [https://www.heroku.com/blog/evolving-backend-storage-for-platform-metrics/](https://www.heroku.com/blog/evolving-backend-storage-for-platform-metrics/)

## Summary

Heroku migrated the time-series store behind MetaaS, its internal metrics service, from self-managed Apache Cassandra to AWS DynamoDB without user-visible impact. MetaaS ingests a couple hundred thousand observations per second into Kafka and aggregates them with stream-processing jobs, writing tens of thousands of points per second to the database. The migration used parallel dual-writes from Kafka and GitHub Scientist-style shadow reads, ramped to 100% of traffic, to catch edge cases. TTL-based retention meant no data backfill was needed: they waited for old Cassandra data to expire, then incrementally cut reads over. p99 query latency dropped from a variable 20–80 ms to a steady 15 ms, and costs fell.

Written by swe.quest, not by the author.

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

## Topics

- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [Distributed databases](https://swe.quest/tags/distributed-databases.md) (Data & databases)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)
- [Schema migrations](https://swe.quest/tags/schema-migrations.md) (Data & databases)

## Prerequisites

- key/value databases ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))
- Kafka stream processing ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))

## Keywords

DynamoDB, Apache Cassandra, Apache Kafka, Heroku, MetaaS, Scientist

## Related posts

- [Introducing Husky, Datadog’s third-generation event store](https://swe.quest/articles/introducing-husky-datadog-s-third-generation-event-store-c33e11fe78ed46cc.md): Datadog Engineering · 2022-05-17 · Medium · 12 min read · Storage engines, Multi-tenancy, Distributed databases, System design, Analytics & OLAP
  Husky is Datadog's third-generation event store, an unbundled, schemaless, vectorized column store that separates compute from storage on top of S3 and a FoundationDB-backed metadata store.
- [Scaling SaaS security: Reco’s migration from Postgres to ClickHouse Cloud](https://swe.quest/articles/scaling-saas-security-reco-s-migration-from-postgres-to-clickhouse-cloud-644c039f853be147.md): ClickHouse · 2025-11-17 · Medium · 6 min read · Analytics & OLAP, PostgreSQL, Stream processing, Performance engineering, Cost optimization
  Reco, a SaaS security platform ingesting 10-12 billion JSON events weekly, moved over 90% of its workload from Postgres to ClickHouse Cloud.
- [Zero-Copy Migration: How Yelp Moved Its Cassandra Fleet Between Kubernetes Clusters](https://swe.quest/articles/zero-copy-migration-how-yelp-moved-its-cassandra-fleet-between-kubernetes-0d6b3f088cd34645.md): Yelp Engineering · 2026-11-09 · Medium · 12 min read · Kubernetes, Distributed databases, Storage systems, Cloud platforms, Refactoring & migrations
  Yelp moved roughly 1000 Cassandra pods and nearly a petabyte of data from self-managed Kubernetes clusters to Amazon EKS without streaming any data.
- [100x Faster: GraphQL Hive migration from Elasticsearch to ClickHouse](https://swe.quest/articles/100x-faster-graphql-hive-migration-from-elasticsearch-to-clickhouse-57650bfdbf95d1a8.md): ClickHouse · 2022-11-03 · Easy · 4 min read · Analytics & OLAP, Observability, GraphQL, Databases, Performance engineering
  GraphQL Hive replaced Elasticsearch with ClickHouse for storing per-request GraphQL monitoring data (consumer, requested fields, latency, request body) after query latency degraded with data growth and one large tenant slowed queries for smaller ones.
- [Building an Observability Solution with ClickHouse at Dash0](https://swe.quest/articles/building-an-observability-solution-with-clickhouse-at-dash0-f950ba66eb3161c6.md): ClickHouse · 2025-04-07 · Hard · 18 min read · Analytics & OLAP, Observability, Storage engines, Databases, Cost optimization
  Dash0 stores all OpenTelemetry metrics, logs and spans in ClickHouse, using PostgreSQL only for customer settings, so signals can be joined and correlated in one system.

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)
