{"id":"6b08bd3b80884893657cc9c8","slug":"modular-monolith","title":"The Modular Monolith: hard boundaries without the cost of the network","summary":"One process and one deployment, but modules with a public API, their own data and communication through events. How to build it in .NET, Java (Spring Modulith), Node.js, Go and Python, and how to guard the boundaries with tests.","servedLang":"en","availableLangs":["pl","en"],"topics":["modular-monolith","monolith","microservices","ddd-strategic-design"],"techs":["dotnet","java","typescript","go","python"],"tags":["architecture","modules","spring-modulith","boundaries","architecture-tests","outbox"],"level":"intermediate","kind":"article","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":13,"stats":{"views":5,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-26T23:14:03.263Z","updatedAt":"2026-11-27T13:09:03.572Z","requestedLang":"en","theme":{"hero":"classic","heroMedia":null,"accent":"teal","background":"grid","weaveResources":true,"toc":"right"},"seoDescription":"Modular monolith: definition, module rules, solution structure in C#, Java, TypeScript, Go and Python, boundary tests (NetArchTest, Spring Modulith, dependency-cruiser), events between modules and the road to microservices.","wordCount":2582,"doc":{"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"After two years, the system of Halina's pierogi place serves a chain of three restaurants, catering and a loyalty programme. Three teams work on it, and an ordinary change in orders can break the points calculation. Instead of immediately cutting the system into microservices, the team chooses a "},{"type":"text","text":"modular monolith","marks":[{"type":"bold"}]},{"type":"text","text":": still one deployment, but with boundaries that the compiler and the tests guard as strictly as the network guards service boundaries."}]},{"type":"callout","attrs":{"variant":"tip","title":"In short"},"content":[{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"A modular monolith is "},{"type":"text","text":"a single deployment unit","marks":[{"type":"bold"}]},{"type":"text","text":" divided into "},{"type":"text","text":"business modules","marks":[{"type":"bold"}]},{"type":"text","text":" with a public API and a hidden interior."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Each module owns "},{"type":"text","text":"its own data","marks":[{"type":"bold"}]},{"type":"text","text":" (a schema or tables) and talks to others through contracts and "},{"type":"text","text":"in-process events","marks":[{"type":"bold"}]},{"type":"text","text":"."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"A well-cut modular monolith is the cheapest road to microservices – "},{"type":"text","text":"if","marks":[{"type":"bold"}]},{"type":"text","text":" they ever turn out to be needed."}]}]}]}]},{"type":"stats","attrs":{"items":[{"value":"1","label":"process and one deployment","hint":"just like a plain monolith"},{"value":"3–10","label":"typical number of modules","hint":"one per business area"},{"value":"0","label":"network calls between modules","hint":"a network error is not a scenario"}]}},{"type":"heading","attrs":{"level":2,"id":"context-and-forces"},"content":[{"type":"text","text":"Context and forces"}]},{"type":"paragraph","content":[{"type":"text","text":"The pierogi place's classic monolith began to resemble a big ball of mud: the "},{"type":"text","text":"Customer","marks":[{"type":"code"}]},{"type":"text","text":" class has fields for sales, delivery and loyalty, and the kitchen report does a "},{"type":"text","text":"JOIN","marks":[{"type":"code"}]},{"type":"text","text":" over seven tables owned by different areas. The forces to reconcile:"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Team independence","marks":[{"type":"bold"}]},{"type":"text","text":" – the loyalty team wants to change its model without asking the orders team for permission."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Operational cost","marks":[{"type":"bold"}]},{"type":"text","text":" – nobody wants to maintain ten pipelines, a message broker and distributed tracing for a system that fits on two servers."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Data consistency","marks":[{"type":"bold"}]},{"type":"text","text":" – some operations still need a transaction, but not all of them."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"An option for the future","marks":[{"type":"bold"}]},{"type":"text","text":" – if catering grows tenfold, it should be possible to extract it without a rewrite."}]}]}]},{"type":"pullQuote","attrs":{"text":"If you can't build a well-structured monolith, what makes you think microservices are the answer?","author":"Simon Brown","role":"creator of the C4 model"}},{"type":"heading","attrs":{"level":2,"id":"structure"},"content":[{"type":"text","text":"Structure"}]},{"type":"paragraph","content":[{"type":"text","text":"A module is a vertical slice of the system around one business capability, not a technical layer. It has three parts: a "},{"type":"text","text":"public contract","marks":[{"type":"bold"}]},{"type":"text","text":" (facade, commands, queries, integration events), an "},{"type":"text","text":"interior","marks":[{"type":"bold"}]},{"type":"text","text":" (domain, use cases, data access) and "},{"type":"text","text":"its own data","marks":[{"type":"bold"}]},{"type":"text","text":"."}]},{"type":"diagram","attrs":{"kind":"mermaid","code":"flowchart TB\n  api[\"Host: HTTP API and composition root\"]\n  subgraph orders[\"Orders module\"]\n    direction TB\n    oc{{\"Contract: IOrdersModule, OrderPlaced\"}}\n    oi[\"Interior: domain, handlers\"]\n    oc --- oi\n  end\n  subgraph kitchen[\"Kitchen module\"]\n    direction TB\n    kc{{\"Contract: IKitchenModule\"}}\n    ki[\"Interior\"]\n    kc --- ki\n  end\n  subgraph loyalty[\"Loyalty module\"]\n    direction TB\n    lc{{\"Contract: ILoyaltyModule\"}}\n    li[\"Interior: AwardPointsOnOrderPlaced\"]\n    lc --- li\n  end\n  bus([\"In-process event bus\"])\n  db[(\"One database, separate schemas:<br/>orders · kitchen · loyalty\")]\n  api --> oc & kc & lc\n  oi -- \"publishes OrderPlaced\" --> bus\n  bus -- \"delivers\" --> li\n  bus -- \"delivers\" --> ki\n  oi --> db\n  ki --> db\n  li --> db","caption":"Modules in one process: contracts outside, interior hidden"}},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Rule"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"What it means in practice"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Public module API"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Other modules see only contracts: the facade interface, DTOs, events. Everything else is "},{"type":"text","text":"internal","marks":[{"type":"code"}]},{"type":"text","text":", in an "},{"type":"text","text":"internal","marks":[{"type":"code"}]},{"type":"text","text":" package or in an "},{"type":"text","text":"internal/","marks":[{"type":"code"}]},{"type":"text","text":" directory"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Data ownership"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"A module has its own schema or table prefix; nobody else runs a "},{"type":"text","text":"SELECT","marks":[{"type":"code"}]},{"type":"text","text":" or "},{"type":"text","text":"JOIN","marks":[{"type":"code"}]},{"type":"text","text":" on them"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Communication"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Synchronously through the facade (when an answer is needed) or asynchronously through events (when a reaction is enough)"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"No cycles"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"The dependency graph between modules is acyclic – otherwise it's one module in disguise"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Little shared code"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"The shared part is infrastructure (event bus, "},{"type":"text","text":"Result","marks":[{"type":"code"}]},{"type":"text","text":"), never business logic"}]}]}]}]},{"type":"heading","attrs":{"level":2,"id":"what-it-looks-like-in-code"},"content":[{"type":"text","text":"What it looks like in code"}]},{"type":"paragraph","content":[{"type":"text","text":"Each stack has its own mechanism for hiding the interior: in .NET separate projects and "},{"type":"text","text":"internal","marks":[{"type":"code"}]},{"type":"text","text":", in Java the Spring Modulith package convention, in Node.js a public "},{"type":"text","text":"index.ts","marks":[{"type":"code"}]},{"type":"text","text":" and linter rules, in Go the "},{"type":"text","text":"internal/","marks":[{"type":"code"}]},{"type":"text","text":" directory enforced by the compiler, in Python the underscore convention checked by a test."}]},{"type":"codeGroup","attrs":{"title":"Module structure in five stacks"},"content":[{"type":"codeBlock","attrs":{"language":"plaintext","filename":"dotnet/solution-tree.txt"},"content":[{"type":"text","text":"src/\n├── Pierogarnia.Host/                    ← the only deployable: Program.cs wires all modules\n├── Modules/\n│   ├── Orders/\n│   │   ├── Pierogarnia.Orders.Contracts/  ← PUBLIC: IOrdersModule, OrderPlaced (integration event)\n│   │   └── Pierogarnia.Orders.Core/       ← INTERNAL: domain, handlers, OrdersDbContext (schema \"orders\")\n│   ├── Kitchen/\n│   │   ├── Pierogarnia.Kitchen.Contracts/\n│   │   └── Pierogarnia.Kitchen.Core/\n│   └── Loyalty/\n│       ├── Pierogarnia.Loyalty.Contracts/\n│       └── Pierogarnia.Loyalty.Core/      ← may reference Orders.Contracts, never Orders.Core\n└── Pierogarnia.Shared/                  ← tiny: event bus abstraction, Result type. No business logic."}]},{"type":"codeBlock","attrs":{"language":"plaintext","filename":"java/spring-modulith-tree.txt"},"content":[{"type":"text","text":"src/main/java/pl/pierogarnia/\n├── PierogarniaApplication.java          ← @SpringBootApplication, the only deployable\n├── orders/                              ← application module (top-level package)\n│   ├── OrdersApi.java                   ← public: classes in the module's base package\n│   ├── OrderPlaced.java                 ← public event record\n│   └── internal/                        ← hidden from other modules (Spring Modulith rule)\n│       ├── Order.java\n│       └── OrderRepository.java\n├── kitchen/\n│   └── ...\n└── loyalty/\n    ├── LoyaltyApi.java\n    └── internal/OrderPlacedListener.java"}]},{"type":"codeBlock","attrs":{"language":"plaintext","filename":"node/nx-workspace-tree.txt"},"content":[{"type":"text","text":"apps/\n└── pierogarnia/                         ← the only deployable (NestJS)\n    └── src/app.module.ts                ← imports OrdersModule, KitchenModule, LoyaltyModule\nlibs/\n├── orders/\n│   ├── src/index.ts                     ← PUBLIC barrel: OrdersService, OrderPlacedEvent\n│   └── src/lib/internal/                ← everything else, never imported directly\n├── kitchen/\n└── loyalty/                             ← lint rule: may import \"@pierogarnia/orders\", not its internals"}]},{"type":"codeBlock","attrs":{"language":"plaintext","filename":"go/module-tree.txt"},"content":[{"type":"text","text":"pierogarnia/\n├── cmd/pierogarnia/main.go              ← the only binary\n└── internal/\n    ├── orders/\n    │   ├── orders.go                    ← PUBLIC API of the module: type Module, func (m *Module) Place(...)\n    │   └── internal/                    ← compiler-enforced: only internal/orders/... may import it\n    │       ├── domain/\n    │       └── store/                   ← tables in schema \"orders\"\n    ├── kitchen/\n    └── loyalty/"}]},{"type":"codeBlock","attrs":{"language":"plaintext","filename":"python/package-tree.txt"},"content":[{"type":"text","text":"pierogarnia/\n├── main.py                              ← the only deployable (FastAPI app)\n├── orders/\n│   ├── __init__.py                      ← PUBLIC: from .api import place_order, OrderPlaced\n│   ├── api.py\n│   └── _internal/                       ← underscore = private by convention, checked by a test\n├── kitchen/\n└── loyalty/"}]}]},{"type":"paragraph","content":[{"type":"text","text":"Boundaries that nobody checks disappear within a few months. That's why the architecture test is part of the module just like the domain tests:"}]},{"type":"codeGroup","attrs":{"title":"Module boundary tests"},"content":[{"type":"codeBlock","attrs":{"language":"csharp","filename":"ModuleBoundaryTests.cs"},"content":[{"type":"text","text":"using System.Reflection;\nusing NetArchTest.Rules;\n\npublic class ModuleBoundaryTests\n{\n    // One marker type per module implementation assembly\n    private static readonly Dictionary<string, Assembly> Modules = new()\n    {\n        [\"Orders\"] = typeof(Pierogarnia.Orders.Core.OrdersModule).Assembly,\n        [\"Kitchen\"] = typeof(Pierogarnia.Kitchen.Core.KitchenModule).Assembly,\n        [\"Loyalty\"] = typeof(Pierogarnia.Loyalty.Core.LoyaltyModule).Assembly,\n    };\n\n    public static IEnumerable<object[]> ModuleNames => Modules.Keys.Select(k => new object[] { k });\n\n    [Theory]\n    [MemberData(nameof(ModuleNames))]\n    public void A_module_never_depends_on_the_internals_of_another(string module)\n    {\n        var forbidden = Modules.Keys\n            .Where(m => m != module)\n            .Select(m => $\"Pierogarnia.{m}.Core\")   // internals; \"Pierogarnia.Orders.Contracts\" stays allowed\n            .ToArray();\n\n        var result = Types.InAssembly(Modules[module])\n            .ShouldNot()\n            .HaveDependencyOnAny(forbidden)\n            .GetResult();\n\n        Assert.True(result.IsSuccessful,\n            $\"{module} reaches into another module: \" + string.Join(\", \", result.FailingTypeNames ?? []));\n    }\n}"}]},{"type":"codeBlock","attrs":{"language":"java","filename":"ModularityTests.java"},"content":[{"type":"text","text":"import org.junit.jupiter.api.Test;\nimport org.springframework.modulith.core.ApplicationModules;\nimport org.springframework.modulith.docs.Documenter;\n\nclass ModularityTests {\n\n    private final ApplicationModules modules = ApplicationModules.of(PierogarniaApplication.class);\n\n    @Test\n    void modulesRespectTheirBoundaries() {\n        // Fails when \"loyalty\" touches a type in \"orders.internal\" or when modules form a cycle.\n        modules.verify();\n    }\n\n    @Test\n    void writeDocumentation() {\n        // Generates C4-style component diagrams of the modules (PlantUML) into target/spring-modulith-docs.\n        new Documenter(modules).writeModulesAsPlantUml();\n    }\n}"}]},{"type":"codeBlock","attrs":{"language":"javascript","filename":".dependency-cruiser.js"},"content":[{"type":"text","text":"/** Run in CI: npx depcruise libs --config .dependency-cruiser.js */\nmodule.exports = {\n  forbidden: [\n    {\n      name: \"no-reaching-into-other-modules\",\n      comment: \"A module may import another module only through its public index.ts\",\n      severity: \"error\",\n      from: { path: \"^libs/([^/]+)/\" },\n      to: {\n        path: \"^libs/([^/]+)/src/lib/\",\n        pathNot: \"^libs/$1/\", // its own internals are fine\n      },\n    },\n    {\n      name: \"no-cycles-between-modules\",\n      severity: \"error\",\n      from: { path: \"^libs/\" },\n      to: { circular: true },\n    },\n  ],\n  options: { tsConfig: { fileName: \"tsconfig.base.json\" } },\n};"}]},{"type":"codeBlock","attrs":{"language":"go","filename":"internal/loyalty/handler.go"},"content":[{"type":"text","text":"package loyalty\n\nimport (\n\t\"context\"\n\n\t\"pierogarnia/internal/orders\" // OK: the public API of the orders module\n\t// \"pierogarnia/internal/orders/internal/domain\"\n\t// ^ does not compile: \"use of internal package ... not allowed\".\n\t//   Go enforces module boundaries in the compiler, no extra tooling needed.\n)\n\ntype Module struct{ store pointsStore }\n\n// OnOrderPlaced is subscribed to the in-process event bus in main.go.\nfunc (m *Module) OnOrderPlaced(ctx context.Context, e orders.OrderPlaced) error {\n\treturn m.store.AddPoints(ctx, e.CustomerID, int(e.Total))\n}\n\ntype pointsStore interface {\n\tAddPoints(ctx context.Context, customerID string, points int) error\n}"}]},{"type":"codeBlock","attrs":{"language":"python","filename":"tests/test_module_boundaries.py"},"content":[{"type":"text","text":"import ast\nimport pathlib\n\nROOT = pathlib.Path(__file__).parents[1] / \"pierogarnia\"\nMODULES = {\"orders\", \"kitchen\", \"loyalty\"}\n\n\ndef imports_of(path: pathlib.Path) -> set[str]:\n    tree = ast.parse(path.read_text(encoding=\"utf-8\"))\n    found = set()\n    for node in ast.walk(tree):\n        if isinstance(node, ast.Import):\n            found |= {a.name for a in node.names}\n        elif isinstance(node, ast.ImportFrom) and node.module and node.level == 0:\n            found.add(node.module)\n    return found\n\n\ndef test_modules_use_only_public_apis_of_other_modules():\n    leaks = []\n    for module in MODULES:\n        for file in (ROOT / module).rglob(\"*.py\"):\n            for name in imports_of(file):\n                parts = name.split(\".\")\n                # \"pierogarnia.orders\" is public, \"pierogarnia.orders._internal...\" is not\n                if len(parts) > 2 and parts[1] in MODULES - {module} and parts[2].startswith(\"_\"):\n                    leaks.append(f\"{file.relative_to(ROOT)} -> {name}\")\n    assert not leaks, \"Module boundary violations:\\n\" + \"\\n\".join(leaks)"}]}]}]},"toc":[{"id":"context-and-forces","text":"Context and forces","level":2,"locked":false},{"id":"structure","text":"Structure","level":2,"locked":false},{"id":"what-it-looks-like-in-code","text":"What it looks like in code","level":2,"locked":false},{"id":"trade-offs","text":"Trade-offs","level":2,"locked":true},{"id":"migration-path","text":"Migration path","level":2,"locked":true},{"id":"in-practice","text":"In practice","level":2,"locked":true},{"id":"anti-patterns","text":"Anti-patterns","level":2,"locked":true},{"id":"related-topics","text":"Related topics","level":2,"locked":true},{"id":"test-yourself","text":"Test yourself","level":2,"locked":true}],"locked":true,"paywall":null,"previewRatio":0.3,"totalBlocks":38,"visibleBlocks":16,"resources":[{"id":"6b0857bf3c96f2d34d0b423d","type":"article","provider":"web","url":"https://www.kamilgrzybek.com/blog/posts/modular-monolith-primer","embedUrl":null,"title":"Modular Monolith: A Primer — Kamil Grzybek","description":"Kamil Grzybek Personal Site","author":"Kamil Grzybek","thumbnailUrl":null,"durationSec":null,"lang":"en","topics":["monolith","modular-monolith"],"techs":["general"],"tags":["software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":70,"verifiedAt":"2026-11-26T11:25:59.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857a53c96f2d34d0b3217","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=5OjqD-ow8GE","embedUrl":"https://www.youtube-nocookie.com/embed/5OjqD-ow8GE","title":"Modular Monoliths • Simon Brown • GOTO 2018","description":"","author":"GOTO Conferences","thumbnailUrl":"https://i.ytimg.com/vi/5OjqD-ow8GE/hqdefault.jpg","durationSec":null,"lang":"en","topics":["modular-monolith","monolith"],"techs":["general"],"tags":[],"price":"free","featured":true,"featuredOrder":13,"packageName":null,"source":"seed","publishedAt":null,"popularity":0,"verifiedAt":"2026-11-26T00:00:00.000Z","curated":true,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:37.149Z","updatedAt":"2026-11-26T16:00:37.149Z"},{"id":"6b0857b23c96f2d34d0b346f","type":"repo","provider":"github","url":"https://github.com/kgrzybek/modular-monolith-with-ddd","embedUrl":null,"title":"kgrzybek/modular-monolith-with-ddd","description":"Full Modular Monolith application with Domain-Driven Design approach.","author":"kgrzybek","thumbnailUrl":"https://opengraph.githubassets.com/1/kgrzybek/modular-monolith-with-ddd","durationSec":null,"lang":"en","topics":["clean-architecture","ddd-strategic-design","cqrs","event-sourcing","modular-monolith"],"techs":["dotnet"],"tags":["architecture","clean-architecture","clean-code","cqrs","ddd","ddd-architecture","design-patterns","software-architecture","api-design","ddd-cqrs"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2019-08-23T00:12:03.000Z","popularity":80,"verifiedAt":"2026-11-26T10:58:51.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:49.541Z","updatedAt":"2026-11-26T16:00:49.541Z"},{"id":"6b0857c53c96f2d34d0b4860","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=Xo3rsiZYsJQ","embedUrl":"https://www.youtube-nocookie.com/embed/Xo3rsiZYsJQ","title":"Modular Monoliths: How To Build One & Lessons Learned","description":"☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt 📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ 🚀 Support me on Patreon to access the source code: https://www.patreon.com/milanjovanovic What is a Modular Monolith? It's a monolith system designed in a…","author":"Milan Jovanović","thumbnailUrl":"https://i.ytimg.com/vi/Xo3rsiZYsJQ/hqdefault.jpg","durationSec":null,"lang":"en","topics":["monolith","modular-monolith","clean-architecture"],"techs":["dotnet"],"tags":["system-design","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2023-02-26T12:00:30.000Z","popularity":74,"verifiedAt":"2026-11-26T10:54:09.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:07.480Z","updatedAt":"2026-11-26T16:01:07.480Z"},{"id":"6b0857b63c96f2d34d0b3adb","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/modular-monoliths-in-net-with-steve-smith/id130068596?i=1000757562012","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id130068596?i=1000757562012","title":"Modular Monoliths in .NET with Steve Smith","description":"Modular Monoliths strike the middle ground between monoliths and microservices! Carl and Richard talk to Steve Smith about his work striking a balance between the simplicity of a monolithic set of services and the complexity of breaking everything into microservices. Steve discusses the…","author":".NET Rocks!","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts211/v4/47/0f/7e/470f7e13-2035-87e9-c578-9163bfdaa5b4/mza_14666437949801840208.jpg/600x600bb.jpg","durationSec":3060,"lang":"en","topics":["monolith","modular-monolith","microservices"],"techs":["dotnet"],"tags":["podcast","testing","performance","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2024-03-07T06:35:07.000Z","popularity":77,"verifiedAt":"2026-11-26T10:58:27.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:53.924Z","updatedAt":"2026-11-26T16:00:53.924Z"},{"id":"6b0857b53c96f2d34d0b39f6","type":"article","provider":"web","url":"https://www.fearofoblivion.com/build-a-modular-monolith-first","embedUrl":null,"title":"Build the Modular Monolith First","description":"Even talking about building a monolith today, is a bit taboo. It is all about microservices at the moment, and has been for a few years. But they aren’t a silver bullet…","author":"Fear of Oblivion","thumbnailUrl":"https://www.fearofoblivion.com/assets/images/covers/modular-monolith.jpg","durationSec":null,"lang":"en","topics":["monolith","modular-monolith","microservices"],"techs":["general"],"tags":["software-architecture","hacker-news"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"hn","publishedAt":"2022-11-13T17:23:54.000Z","popularity":62,"verifiedAt":"2026-11-26T11:15:37.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:52.228Z","updatedAt":"2026-11-26T16:00:52.228Z"}],"challenges":[{"id":"6b093dc291bd8fbaf2a0c8d8","slug":"payment-circuit-breaker","title":"Circuit breaker for a payment gateway","summary":"A circuit breaker with closed, open and half-open states, an injected clock, a trial-success threshold and a business-error filter – so a payment gateway outage does not take the whole shop down.","servedLang":"en","availableLangs":["pl","en"],"kind":"code","category":"architecture","status":"published","difficulty":"hard","topics":["circuit-breaker","microservices"],"techs":["typescript","javascript","python","dotnet","java","go"],"tags":["circuit-breaker","resilience","fault-tolerance","state-machine","payments"],"languages":["typescript","javascript","python","csharp","java","go"],"questionCount":null,"xp":40,"stats":{"attempts":0,"solves":0,"solutions":0,"comments":0},"solveRate":null,"publishedAt":"2026-11-27T08:22:26.251Z"}],"attachments":[],"hasCode":true,"repoUrl":null,"series":[{"slug":"architecture-path","title":"From monolith to microservices","items":[{"slug":"monolith","title":"The Monolith: one application, one deployment, and why it is often the right start","current":false},{"slug":"modular-monolith","title":"The Modular Monolith: hard boundaries without the cost of the network","current":true},{"slug":"layered-architecture","title":"Layered architecture: presentation, logic, data – and where it breaks","current":false},{"slug":"hexagonal-architecture","title":"Pierogi in the Hexagon","current":false},{"slug":"clean-architecture","title":"Clean Architecture: the dependency rule and use cases at the centre","current":false},{"slug":"onion-architecture","title":"Onion architecture: the domain model in the middle, infrastructure outside","current":false},{"slug":"vertical-slice-architecture","title":"Vertical slice architecture: code by feature, not by layer","current":false},{"slug":"cqrs","title":"CQRS: one model for changing, another for reading","current":false},{"slug":"event-sourcing","title":"Event sourcing: store the facts, not just the latest state","current":false},{"slug":"event-driven-architecture","title":"Event-driven architecture: who publishes, who listens and what can go wrong","current":false},{"slug":"microservices","title":"Microservices: independent deployments, real costs and when it pays off","current":false},{"slug":"ddd-strategic-design","title":"DDD strategic design: subdomains, bounded contexts and context maps","current":false}]}],"prev":{"slug":"monolith","title":"The Monolith: one application, one deployment, and why it is often the right start"},"next":{"slug":"layered-architecture","title":"Layered architecture: presentation, logic, data – and where it breaks"},"featured":false,"authorCard":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","headline":"Wzorce projektowe · Architektura · AI i LLM","community":false,"reputation":{"points":3900,"level":{"key":"mentor","label":"Mentor"}},"articles":68,"skills":[{"key":"typescript","title":"TypeScript","level":5,"levelLabel":"Authority","articles":63},{"key":"dotnet","title":".NET","level":5,"levelLabel":"Authority","articles":53},{"key":"python","title":"Python","level":5,"levelLabel":"Authority","articles":52},{"key":"java","title":"Java","level":5,"levelLabel":"Authority","articles":38}]}}