Spotify
Spotify logoSpotify · Feature trail

Spotify Data Platform

23 posts · Apr 2013 – Apr 2024

What this trail covers

Spotify's Data Platform, a large-scale GCP-based system handling over a trillion events daily, continues to evolve. This post details the adoption of Apache Crunch as a Java-based data processing framework on top of Hadoop, replacing the less performant Python-based Hadoop Streaming API. Crunch offers type-safety, higher performance, and higher-level abstractions for data pipelines. The platform also introduced `crunch-lib` for common operations and a unified execution layer with an Inversion of Control. The Data Collection platform handles over 1 trillion events per day, with its event delivery architecture evolving through numerous iterations, including a move to cloud-managed services like Pub/Sub and Dataflow. Data Management and Processing focus on empowering Spotify to utilize data effectively, ensuring data integrity, traceability, searchability, and accessibility. Over 38,000 actively scheduled pipelines handle hourly and daily tasks, executing on BigQuery, Flink, or Dataflow clusters, often utilizing Scio. Data pipelines generate data endpoints with retention policies, access controls, lineage tracking, and quality checks, managed via custom K8 operators. Monitoring includes alerts for data lateness, failing workflows, and endpoints, with Backstage integration for resource management, cost analysis, and quality assurance. The platform emphasizes building a strong community through documentation, onboarding, automated migrations, and a dedicated support channel.

All Spotify trails