More Refactoring Podcast episodes

Microservices should be your last resort  with Sam Newman thumbnail

Microservices should be your last resort with Sam Newman

Published 27 Nov 2026

Duration: 01:02:31

Microservices should be an architecture of last resort, while resilience requires socio-technical adaptability and psychological safety, with AI acting as a magnifier of existing team practices rather than a replacement for shared understanding.

Episode Description

Today we are talking with Sam Newman, independent consultant, advisor and author of Building Microservices (written twice, as he jokes) and, most rece...

Overview

Sam Newman, an independent consultant and author, discusses his journey writing about microservices and distributed systems, noting that his first book came out in 2015 and his latest, "Building Resilient Distributed Systems," was published a few months ago. He describes microservices as an opinionated type of service-oriented architecture where services are independently deployable, emphasizing that this should be an "architecture of last resort" rather than a default choice. He argues that many organizations adopt microservices by copying successful companies like Netflix without first identifying the outcomes they actually need.

Newman explores resilience engineering through David Woods' four concepts - robustness, rebound, graceful extensibility, and sustained adaptability - arguing that a resilient system is one that can bend and adapt rather than one that never fails. He illustrates this with the Telstra outage in Australia, where the COO publicly blamed a single person, creating a blame culture that suppressed reporting of small issues and ultimately led to multiple outages throughout the year.

The conversation also addresses how AI changes ownership and understanding of systems. Newman warns that AI is a magnifier: organizations already struggling tend to do worse with it. He advocates using AI to free time for building shared mental models rather than surrendering understanding to the tool, and emphasizes that old practices like small incremental changes, continuous delivery, and working collectively remain essential.

What If

  • What if you treated your current monolith as a modular monolith before ever splitting it?

    • Move: Draw your system as "a big box, all the code goes in it," then define internal module boundaries using domain-driven design principles. Add build-time dependency checks (tools like Structure 101 or JDepend) to enforce those boundaries, replicating the forcing function Newman describes for microservices without the distributed-systems overhead.
    • Why Now?: Newman states his default position is the big box and that a modular monolith is "a great option" for a single team. As a solo operator, you avoid the coordination cost of independent deployment while still gaining parallel-development benefits and loose coupling.
    • Expected Upside: You retain the ability to extract a service later if a specific need (information classification, scaling, team autonomy) emerges, without having paid the upfront complexity tax of a distributed architecture.
  • What if you ran a personal game-day exercise on your own system this week?

    • Move: Pick one dependency (a third-party API, a database, a queue) and simulate its failure in a staging environment. Practice the full recovery path: detect, alert, degrade gracefully, restore. Newman references Google SREs spinning a "wheel of misfortune" with scenarios like "the data center's caught fire. What are you going to do?"
    • Why Now?: Newman argues game-day exercises "do huge amounts more effort before you need to worry about chaos monkeys," and that graceful extensibility - dealing with surprise - is where most systems fail. A solo operator has no on-call rotation to fall back on, so rehearsing the rebound path is critical.
    • Expected Upside: You surface gaps in timeouts, retries, and idempotency before a real incident, and you build the muscle to shed non-critical work under load rather than trying to "do everything" and becoming brittle.
  • What if you used an LLM to unpack your tacit domain knowledge instead of generating more code?

    • Move: Before writing a feature, spend a session explaining the domain language, business rules, and edge cases to an LLM in plain language, then have it challenge your assumptions. Newman cites Chris Ford's view that "the biggest problem with AI and software development" is unpacking tacit knowledge for the model, and that this unpacking process is "profoundly valuable."
    • Why Now?: Newman warns that teams getting the least from AI "interpret value as generation of text" and simply scale up code output. As a solo operator, your bottleneck is understanding, not typing speed; forcing yourself to articulate implicit knowledge sharpens the shared mental model you need.
    • Expected Upside: You produce clearer specs, catch misunderstandings earlier, and build a reusable domain glossary that makes future AI-assisted work more accurate - without surrendering your understanding of what the system is supposed to do.

Takeaway

  • Default to a modular monolith with enforced internal boundaries (build-time dependency checks) and only extract a service when you can name a concrete outcome - team autonomy, data classification, or scaling - that the monolith cannot deliver.
  • Run a game-day exercise on your staging environment monthly: kill a dependency, verify your timeouts, retries, and graceful degradation actually work, and document the recovery steps so the next incident is a drill, not a surprise.
  • Read at least one external post-mortem per week; Newman notes "not enough people read other people's incident reports" and that learning from others' failures lets you "not have to learn from your own."
  • Define a single SLO for your system and share it with any stakeholder who requests features, using the error budget as the gate for whether you can experiment or must stabilize.
  • Before asking an LLM to write code, spend ten minutes explaining the domain rules and edge cases in plain language; treat that unpacking as the deliverable, not the generated code, to preserve your mental model of the system.

Recent Episodes of Refactoring Podcast

2 Oct 2026 Refactoring Street Fighter With AI with Adam Tornhill

"Large-scale AI refactoring of *Street Fighter 3*'s 300K-line C codebase improved quality, reduced development costs, and highlighted the importance of clean code for AI efficiency, while addressing challenges in enterprise vs. game codebases, AI-assisted testing, and the evolving role of developers."

15 Sept 2026 Making AI agents work in your team with Dennis Pilarinos

"AI adoption is surging but failing to boost productivity, with inefficiencies in workflows, code review bottlenecks, and fragmented data challenging effective integration, requiring context-powered solutions and better automation strategies."

17 Jul 2026 Speed Is the Only Moat with Anush Elangovan

"AI-driven software development is accelerating through open-source collaboration, balancing innovation with validation, while tech leaders must adapt to AI's role in enhancing productivity and creativity."

More Refactoring Podcast episodes

Microservices should be your last resort | Podcast Summarizer · 11t8