Niklas Gustavsson is the Chief Architect at Spotify where he focuses on holistic architecture, technology innovation and engineering practices, and with a strong interest towards making architecture more data-driven.
Managing thousands of components across millions of lines of code is a massive challenge. At Spotify, we moved from manual multi-month migrations to a fleet-first mindset, using tools like OpenRewrite and AI-powered background coding agents to run automated, daily code refactorings and infrastructure optimisations.
This talk covers how we scaled to over one million automated changes, our evolution from deterministic recipes to agentic loops, and how we use test automation and LLM judges to maintain quality.