{"id":"6b08bd3f80884893657cca42","slug":"architecture-path","title":"From monolith to microservices","description":"A path through architecture styles in the order you usually meet them in a growing system: from the monolith and modules, through layers, the hexagon, clean and onion architecture and vertical slices, to CQRS, event sourcing, events, microservices and strategic DDD.","level":"intermediate","cover":null,"order":4,"itemCount":12,"articleCount":12,"topicCount":0,"minutes":193,"groups":["architecture"],"covers":["/api/files/6b08bd3880884893657cc988"],"preview":[{"kind":"article","title":"The Monolith: one application, one deployment, and why it is often the right start","slug":"monolith","topicSlug":null},{"kind":"article","title":"The Modular Monolith: hard boundaries without the cost of the network","slug":"modular-monolith","topicSlug":null},{"kind":"article","title":"Layered architecture: presentation, logic, data – and where it breaks","slug":"layered-architecture","topicSlug":null},{"kind":"article","title":"Pierogi in the Hexagon","slug":"hexagonal-architecture","topicSlug":null}],"articleIds":["6b08bd3b80884893657cc9d2","6b08bd3b80884893657cc9c8","6b08bd3980884893657cc9a0","6b08bd3880884893657cc98c","6b08bd3080884893657cc906","6b08bd3c80884893657cc9e7","6b08bd3e80884893657cca2e","6b08bd3180884893657cc924","6b08bd3380884893657cc94c","6b08bd3280884893657cc942","6b08bd3a80884893657cc9be","6b08bd3280884893657cc92e"],"items":[{"kind":"article","articleId":"6b08bd3b80884893657cc9d2","slug":"monolith","topicSlug":null,"title":"The Monolith: one application, one deployment, and why it is often the right start","summary":"What a monolith really is, when it is the best choice, how it turns into a big ball of mud and how to get out of it without a revolution. Structure in .NET, Java, Node.js, Go and Python.","readingMinutes":11,"note":"","cover":null,"group":"architecture","icon":"box","techs":["dotnet","typescript","java","go","python"],"level":"beginner","status":"available"},{"kind":"article","articleId":"6b08bd3b80884893657cc9c8","slug":"modular-monolith","topicSlug":null,"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.","readingMinutes":13,"note":"","cover":null,"group":"architecture","icon":"blocks","techs":["dotnet","java","typescript","go","python"],"level":"intermediate","status":"available"},{"kind":"article","articleId":"6b08bd3980884893657cc9a0","slug":"layered-architecture","topicSlug":null,"title":"Layered architecture: presentation, logic, data – and where it breaks","summary":"The oldest and most popular way of structuring business applications: closed and open layers, layers versus tiers, code in C#, TypeScript, Java, Go and Python, ArchUnit and NetArchTest tests, and the road to the hexagon.","readingMinutes":12,"note":"","cover":null,"group":"architecture","icon":"rows-3","techs":["dotnet","java","typescript","go","python"],"level":"beginner","status":"available"},{"kind":"article","articleId":"6b08bd3880884893657cc98c","slug":"hexagonal-architecture","topicSlug":null,"title":"Pierogi in the Hexagon","summary":"Hexagonal architecture in .NET explained over a beer — so that even your aunt gets it at a family party","readingMinutes":62,"note":"","cover":"/api/files/6b08bd3880884893657cc988","group":"architecture","icon":"hexagon","techs":["dotnet"],"level":"intermediate","status":"available"},{"kind":"article","articleId":"6b08bd3080884893657cc906","slug":"clean-architecture","topicSlug":null,"title":"Clean Architecture: the dependency rule and use cases at the centre","summary":"Robert C. Martin's Clean Architecture without the myths: four circles, the dependency rule, input and output ports, the presenter. Structure and a use case in C#, TypeScript, Java, Go and Python, plus an honest list of costs.","readingMinutes":12,"note":"","cover":null,"group":"architecture","icon":"target","techs":["dotnet","java","typescript","go","python"],"level":"intermediate","status":"available"},{"kind":"article","articleId":"6b08bd3c80884893657cc9e7","slug":"onion-architecture","topicSlug":null,"title":"Onion architecture: the domain model in the middle, infrastructure outside","summary":"Jeffrey Palermo's Onion Architecture: four tenets, the layers of the core (model, domain services, application services), the difference between a domain service and an application service, and code in C#, TypeScript, Java, Go and Python built around ordering flour.","readingMinutes":11,"note":"","cover":null,"group":"architecture","icon":"circle-dot-dashed","techs":["dotnet","java","typescript","go","python"],"level":"intermediate","status":"available"},{"kind":"article","articleId":"6b08bd3e80884893657cca2e","slug":"vertical-slice-architecture","topicSlug":null,"title":"Vertical slice architecture: code by feature, not by layer","summary":"Jimmy Bogard's Vertical Slice Architecture: every feature of the system is a separate slice from the endpoint to the database. Structure and a complete slice in C#, TypeScript, Java, Go and Python, how it combines with CQRS and the hexagon, and the risks of duplication.","readingMinutes":11,"note":"","cover":null,"group":"architecture","icon":"columns-3","techs":["dotnet","java","typescript","go","python"],"level":"intermediate","status":"available"},{"kind":"article","articleId":"6b08bd3180884893657cc924","slug":"cqrs","topicSlug":null,"title":"CQRS: one model for changing, another for reading","summary":"Command Query Responsibility Segregation without overdoing it: from Bertrand Meyer's CQS, through three levels of CQRS, to projections and eventual consistency. Commands, queries and projections in C#, TypeScript, Java, Go and Python.","readingMinutes":12,"note":"","cover":null,"group":"architecture","icon":"split","techs":["dotnet","java","typescript","go","python"],"level":"intermediate","status":"available"},{"kind":"article","articleId":"6b08bd3380884893657cc94c","slug":"event-sourcing","topicSlug":null,"title":"Event sourcing: store the facts, not just the latest state","summary":"State as a sequence of immutable events: streams, rehydration by folding, optimistic concurrency, projections, snapshots and event versioning. An aggregate and an event store in C# (Marten), TypeScript, Java, Go and Python.","readingMinutes":13,"note":"","cover":null,"group":"architecture","icon":"scroll-text","techs":["dotnet","java","typescript","go","python"],"level":"advanced","status":"available"},{"kind":"article","articleId":"6b08bd3280884893657cc942","slug":"event-driven-architecture","topicSlug":null,"title":"Event-driven architecture: who publishes, who listens and what can go wrong","summary":"Event-driven architecture in practice: Fowler's four meanings of \"events\", choreography and orchestration, delivery guarantees, the outbox, idempotent consumers, ordering and contracts. Code in C#, TypeScript, Java, Go and Python.","readingMinutes":13,"note":"","cover":null,"group":"architecture","icon":"zap","techs":["dotnet","java","typescript","go","python"],"level":"advanced","status":"available"},{"kind":"article","articleId":"6b08bd3a80884893657cc9be","slug":"microservices","topicSlug":null,"title":"Microservices: independent deployments, real costs and when it pays off","summary":"The microservice style according to Lewis and Fowler, without the marketing: boundaries by business capability, own data, synchronous and asynchronous communication, resilience, prerequisites and the road from the monolith. Code in C#, TypeScript, Java, Go and Python.","readingMinutes":11,"note":"","cover":null,"group":"architecture","icon":"container","techs":["dotnet","java","typescript","go","python"],"level":"advanced","status":"available"},{"kind":"article","articleId":"6b08bd3280884893657cc92e","slug":"ddd-strategic-design","topicSlug":null,"title":"DDD strategic design: subdomains, bounded contexts and context maps","summary":"The strategic part of Domain-Driven Design in practice: the ubiquitous language, core, supporting and generic subdomains, bounded contexts, context map patterns and the anticorruption layer. Examples in C#, TypeScript, Java, Go and Python.","readingMinutes":12,"note":"","cover":null,"group":"architecture","icon":"map","techs":["dotnet","java","typescript","go","python"],"level":"advanced","status":"available"}],"others":[{"id":"6b08bd4080884893657cca50","slug":"gof-creational","title":"GoF creational patterns","description":"Five ways to stop object creation from being scattered all over your code: from Factory Method through Abstract Factory, Builder and Prototype to Singleton – with examples in C#, TypeScript, Java, Go and Python.","level":"intermediate","cover":null,"order":1,"itemCount":5},{"id":"6b08bd4080884893657cca57","slug":"gof-structural","title":"GoF structural patterns","description":"Seven patterns about composing classes and objects into larger structures: Adapter, Bridge, Composite, Decorator, Facade, Flyweight and Proxy. Each with a real-life problem, a diagram and code in five languages.","level":"intermediate","cover":null,"order":2,"itemCount":7},{"id":"6b08bd3f80884893657cca49","slug":"gof-behavioral","title":"GoF behavioral patterns","description":"Ten behavioral patterns from the Gang of Four catalog, told through Halina's pierogi place moving online: from Strategy and Observer to Memento and Visitor. Every article has a diagram, code in C#, TypeScript, Java, Go and Python, a quiz and advice on when not to use the pattern.","level":"intermediate","cover":null,"order":3,"itemCount":10}]}