# Evolution of SoundCloud's Architecture

DevFeed: [Evolution of SoundCloud's Architecture](<https://devfeed.tech/articles/evolution-of-soundcloud-s-architecture-2032.md>)

Original publisher: [Read original article](<https://developers.soundcloud.com/blog//evolution-of-soundclouds-architecture>)

Published: 2012-08-30T00:00:00Z

Content type: article

Language: en

Sources: [SoundCloud Backstage](<https://devfeed.tech/sources/soundcloud-backstage-blog.md>)

Topics: [software-architecture](<https://devfeed.tech/topics/software-architecture.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [scalable-architecture](<https://devfeed.tech/topics/scalable-architecture.md>), [Messaging](<https://devfeed.tech/topics/messaging.md>), [Ruby on Rails](<https://devfeed.tech/topics/ruby-on-rails.md>), [Cloud Architecture](<https://devfeed.tech/topics/cloud-architecture.md>)

Tags: [activerecord](<https://devfeed.tech/tags/activerecord.md>), [added](<https://devfeed.tech/tags/added.md>), [agents](<https://devfeed.tech/tags/agents.md>), [all](<https://devfeed.tech/tags/all.md>), [also](<https://devfeed.tech/tags/also.md>), [amazon](<https://devfeed.tech/tags/amazon.md>), [amazon-ec2](<https://devfeed.tech/tags/amazon-ec2.md>), [amazon-s3](<https://devfeed.tech/tags/amazon-s3.md>), [amqp](<https://devfeed.tech/tags/amqp.md>), [android](<https://devfeed.tech/tags/android.md>), [apache](<https://devfeed.tech/tags/apache.md>), [api](<https://devfeed.tech/tags/api.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [evolution](<https://devfeed.tech/tags/evolution.md>), [growth](<https://devfeed.tech/tags/growth.md>), [luxury](<https://devfeed.tech/tags/luxury.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [over](<https://devfeed.tech/tags/over.md>), [scaling](<https://devfeed.tech/tags/scaling.md>), [story](<https://devfeed.tech/tags/story.md>), [this](<https://devfeed.tech/tags/this.md>), [time](<https://devfeed.tech/tags/time.md>)

## AI overview

SoundCloud describes scaling by isolating bottlenecks and adding integration points as growth demanded. It replaced Apache with Nginx to simplify web routing, then added HAProxy to queue HTTP requests until an available application process could serve them, addressing head-of-line blocking that more child processes alone could not handle. RabbitMQ and AMQP supported reliable asynchronous jobs, including social notifications and staged dashboard processing; Memcached and later Varnish served cached fragments, pages, and mostly read-only API responses. For the personalized dashboard, RabbitMQ staged fan-out, personalization, and serialization into Cassandra, chosen for the index's random-write and sequential-read needs. Search used Elastic Search, with index updates coordinated through ModelBroadcast and database replicas. The account emphasizes deliberate tradeoffs: early development favored product speed over high availability, and asynchronous workflows introduced eventual consistency.

## Source excerpt

This is a story of how we adapted our architecture over time to accomodate growth. Scaling is a luxury problem and surprisingly has more to...