# Building Products at SoundCloud --Part I: Dealing with the Monolith

DevFeed: [Building Products at SoundCloud --Part I: Dealing with the Monolith](<https://devfeed.tech/articles/building-products-at-soundcloud-part-i-dealing-with-the-monolith-2002.md>)

Original publisher: [Read original article](<https://developers.soundcloud.com/blog//building-products-at-soundcloud-part-1-dealing-with-the-monolith>)

Published: 2014-06-11T00:00:00Z

Content type: article

Language: en

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

Topics: [Software Process](<https://devfeed.tech/topics/software-process.md>), [Web app](<https://devfeed.tech/topics/webapp.md>), [IntelliJ IDEA](<https://devfeed.tech/topics/intellij-idea.md>), [Business, Industry, Usability, User Experience, User Research, Web Strategy](<https://devfeed.tech/topics/business-industry-usability-user-experience-user-research-web-strategy.md>)

Tags: [activerecord](<https://devfeed.tech/tags/activerecord.md>), [amqp](<https://devfeed.tech/tags/amqp.md>), [api](<https://devfeed.tech/tags/api.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [big-bang](<https://devfeed.tech/tags/big-bang.md>), [broker](<https://devfeed.tech/tags/broker.md>), [clojure](<https://devfeed.tech/tags/clojure.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [database](<https://devfeed.tech/tags/database.md>), [databases](<https://devfeed.tech/tags/databases.md>), [email](<https://devfeed.tech/tags/email.md>), [event](<https://devfeed.tech/tags/event.md>), [event-sourcing](<https://devfeed.tech/tags/event-sourcing.md>), [finagle](<https://devfeed.tech/tags/finagle.md>), [monolith](<https://devfeed.tech/tags/monolith.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [scala](<https://devfeed.tech/tags/scala.md>)

## AI overview

SoundCloud moved from its Rails monolith toward microservices because repeated patches did not solve scaling challenges. It stopped adding new features to the monolith and built new functionality as services, extracting existing features during larger refactors. Initially, services used the Public API, avoiding direct dependence on shared database tables, but API limits and the need to react promptly to user activity made that insufficient. Semantic Events over AMQP/RabbitMQ let services consume domain-change messages and support event sourcing, while API queries were still needed for some data. Rather than share ActiveRecord models through a Ruby gem--which would require versioning across services and constrain implementation to Ruby--SoundCloud added a private Internal API using Rails engines. OAuth 2.0 scopes controlled access, including actions on a user's behalf. The excerpt says the combined push and pull interfaces reduced coupling to the old architecture and enabled shorter feedback cycles.

## Source excerpt

Most of SoundCloud's products are written in Scala, Clojure, or JRuby. This wasn't always the case. Like other start-ups, SoundCloud was...