{"slug":"layered-architecture","group":"architecture","title":"Layered Architecture","short":"The classic split into presentation, business logic and data access layers.","icon":"rows-3","aliases":["N-tier","Architektura wielowarstwowa"],"order":403,"status":"available","articleCount":4,"groupTitle":"Architecture","intro":"","servedLang":"en","primaryArticle":{"id":"6b08bd3980884893657cc9a0","slug":"layered-architecture","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.","servedLang":"en","availableLangs":["pl","en"],"topics":["layered-architecture","hexagonal-architecture","clean-architecture"],"techs":["dotnet","java","typescript","go","python"],"tags":["architecture","layers","n-tier","archunit","netarchtest","import-linter"],"level":"beginner","kind":"article","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":12,"stats":{"views":3,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-26T23:14:01.857Z","updatedAt":"2026-11-27T13:17:47.199Z","challengeCount":0,"quizCount":0},"articles":[{"id":"6b09417d5ce40d447918f2a3","slug":"express","title":"REST API with Express 5 and TypeScript – from an empty folder to production","summary":"We build the order API of a pierogi shop with Express 5 and TypeScript – Zod-validated configuration, routing, request validation, centralized error handling, async handlers, pino logs, CORS, Helmet, rate limiting, tests with supertest and a Docker image.","servedLang":"en","availableLangs":["pl","en"],"topics":["express","typescript","layered-architecture"],"techs":["node","typescript"],"tags":["express-5","rest-api","zod","pino","helmet","cors","rate-limiting","vitest","supertest","docker"],"level":"intermediate","kind":"tutorial","access":"public","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":23,"stats":{"views":2,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T08:38:21.076Z","updatedAt":"2026-11-27T13:02:59.181Z","relation":{"position":2,"primary":false,"mainTopic":{"slug":"express","title":"Express"}}},{"id":"6b08bd3e80884893657cca2e","slug":"vertical-slice-architecture","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.","servedLang":"en","availableLangs":["pl","en"],"topics":["vertical-slice-architecture","cqrs","layered-architecture"],"techs":["dotnet","java","typescript","go","python"],"tags":["architecture","vertical-slices","feature-folders","mediatr","refactoring"],"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":11,"stats":{"views":5,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-26T23:14:06.861Z","updatedAt":"2026-11-27T13:19:17.668Z","relation":{"position":2,"primary":false,"mainTopic":{"slug":"vertical-slice-architecture","title":"Vertical Slice Architecture"}}},{"id":"6b08bd3380884893657cc956","slug":"facade","title":"Facade – one simple entry point to a complex subsystem","summary":"Facade exposes one convenient operation that coordinates many subsystem classes behind the scenes. An example of course enrollment with payment, access and a welcome email in C#, TypeScript, Java, Go and Python.","servedLang":"en","availableLangs":["pl","en"],"topics":["facade","adapter","mediator","layered-architecture"],"techs":["dotnet","typescript","java","go","python"],"tags":["gof","structural","facade","orchestration","api-design"],"level":"beginner","kind":"article","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":11,"stats":{"views":3,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-26T23:13:55.487Z","updatedAt":"2026-11-27T13:05:40.198Z","relation":{"position":3,"primary":false,"mainTopic":{"slug":"facade","title":"Facade"}}}],"challenges":[],"resources":[{"id":"6b0857bf3c96f2d34d0b425a","type":"article","provider":"web","url":"https://learn.microsoft.com/en-us/azure/architecture/guide/architecture-styles/n-tier","embedUrl":null,"title":"N-tier Architecture Style","description":"Learn about the benefits, challenges, and best practices for N-tier architectures on Azure, which separates an app into logical layers and physical tiers.","author":"Microsoft Azure Architecture Center","thumbnailUrl":"https://learn.microsoft.com/en-us/media/open-graph-image.png","durationSec":null,"lang":"en","topics":["layered-architecture"],"techs":["general"],"tags":["azure","cloud","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":66,"verifiedAt":"2026-11-26T11:07:38.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857c03c96f2d34d0b43f1","type":"article","provider":"web","url":"https://threedots.tech/post/database-transactions-in-go","embedUrl":null,"title":"Database Transactions in Go with Layered Architecture","description":"As I join a new company, I often feel like an impostor. After all the interviews, they really seem to know what they’re doing. I’m humbled and ready to learn from the best. On one such occasion, a few days in, I dealt with a production outage and asked the most senior engineer for help. They came…","author":"Three Dots Labs","thumbnailUrl":"https://threedots.tech/images/covers/database-transactions-in-go-social.png","durationSec":null,"lang":"en","topics":["layered-architecture"],"techs":["go"],"tags":["software-architecture","databases"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":"2024-09-04T22:00:00.000Z","popularity":50,"verifiedAt":"2026-11-26T11:28:48.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857b73c96f2d34d0b3c05","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/software-architecture-fundamentals-2nd-edition-chapter/id1752902467?i=1000756075694","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1752902467?i=1000756075694","title":"Software Architecture Fundamentals 2nd Edition, Chapter 10: Layered Architectures","description":"This is the first of many chapters that each do a deep-dive on a particular architecture style; in this chapter, we start with the layered monolithic architecture, also known by many as the default architecture. We describe the topology, communication, data strategies, and philosophy underlying…","author":"Software Architecture Book Club","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts211/v4/05/4c/68/054c68d1-a78e-511c-81f2-225567e7e32f/mza_4756898323908452544.jpg/600x600bb.jpg","durationSec":3551,"lang":"en","topics":["layered-architecture"],"techs":["general"],"tags":["podcast","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2026-03-19T04:00:00.000Z","popularity":68,"verifiedAt":"2026-11-26T10:58:17.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:53.924Z","updatedAt":"2026-11-26T16:00:53.924Z"},{"id":"6b0857be3c96f2d34d0b4230","type":"article","provider":"web","url":"https://learn.microsoft.com/en-us/dotnet/architecture/modern-web-apps-azure/common-web-application-architectures","embedUrl":null,"title":"Common web application architectures - .NET","description":"Architect Modern Web Applications with ASP.NET Core and Azure | Explore the common web application architectures","author":"Microsoft Learn","thumbnailUrl":"https://learn.microsoft.com/dotnet/media/dotnet-bot_microservices.png","durationSec":null,"lang":"en","topics":["monolith","layered-architecture","clean-architecture"],"techs":["dotnet"],"tags":["cloud","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":70,"verifiedAt":"2026-11-26T11:25:50.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:59.965Z","updatedAt":"2026-11-26T16:00:59.965Z"},{"id":"6b0857b63c96f2d34d0b3aa4","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/rethinking-data-moving-from-the-traditional-three/id1106971805?i=1000778537539","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1106971805?i=1000778537539","title":"Rethinking Data: Moving From the Traditional Three-Tier Web Stack to Client-Side Event Sourcing","description":"Johannes Schickling explores how he moved beyond the traditional three-tier web stack to a local-first approach. He shares his experience transitioning from Prisma to developing Overtone—a music curation app leveraging client-side event sourcing and SQLite. The discussion highlights the trade-offs…","author":"The InfoQ Podcast","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts221/v4/32/63/68/326368be-1efd-200e-7749-cc6f5d91a7ad/mza_6955760118795274003.jpg/600x600bb.jpg","durationSec":2617,"lang":"en","topics":["layered-architecture","event-sourcing"],"techs":["general"],"tags":["podcast","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2026-07-27T12:00:06.000Z","popularity":84,"verifiedAt":"2026-11-26T10:58:53.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:53.924Z","updatedAt":"2026-11-26T16:00:53.924Z"},{"id":"6b0857b23c96f2d34d0b34b1","type":"repo","provider":"github","url":"https://github.com/spring-projects/spring-petclinic","embedUrl":null,"title":"spring-projects/spring-petclinic","description":"A sample Spring-based application","author":"spring-projects","thumbnailUrl":"https://opengraph.githubassets.com/1/spring-projects/spring-petclinic","durationSec":null,"lang":"en","topics":["layered-architecture"],"techs":["java"],"tags":["software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2013-01-09T09:05:18.000Z","popularity":77,"verifiedAt":"2026-11-26T10:55:56.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:50.215Z","updatedAt":"2026-11-26T16:00:50.215Z"},{"id":"6b0857b23c96f2d34d0b3567","type":"repo","provider":"github","url":"https://github.com/TNG/ArchUnit","embedUrl":null,"title":"TNG/ArchUnit","description":"A Java architecture test library, to specify and assert architecture rules in plain Java","author":"TNG","thumbnailUrl":"https://opengraph.githubassets.com/1/TNG/ArchUnit","durationSec":null,"lang":"en","topics":["layered-architecture"],"techs":["java"],"tags":["testing","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2017-04-21T08:39:20.000Z","popularity":69,"verifiedAt":"2026-11-26T10:55:56.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:50.215Z","updatedAt":"2026-11-26T16:00:50.215Z"}],"resourceGroups":[{"type":"podcast","items":[{"id":"6b0857b73c96f2d34d0b3c05","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/software-architecture-fundamentals-2nd-edition-chapter/id1752902467?i=1000756075694","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1752902467?i=1000756075694","title":"Software Architecture Fundamentals 2nd Edition, Chapter 10: Layered Architectures","description":"This is the first of many chapters that each do a deep-dive on a particular architecture style; in this chapter, we start with the layered monolithic architecture, also known by many as the default architecture. We describe the topology, communication, data strategies, and philosophy underlying…","author":"Software Architecture Book Club","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts211/v4/05/4c/68/054c68d1-a78e-511c-81f2-225567e7e32f/mza_4756898323908452544.jpg/600x600bb.jpg","durationSec":3551,"lang":"en","topics":["layered-architecture"],"techs":["general"],"tags":["podcast","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2026-03-19T04:00:00.000Z","popularity":68,"verifiedAt":"2026-11-26T10:58:17.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:53.924Z","updatedAt":"2026-11-26T16:00:53.924Z"},{"id":"6b0857b63c96f2d34d0b3aa4","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/rethinking-data-moving-from-the-traditional-three/id1106971805?i=1000778537539","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1106971805?i=1000778537539","title":"Rethinking Data: Moving From the Traditional Three-Tier Web Stack to Client-Side Event Sourcing","description":"Johannes Schickling explores how he moved beyond the traditional three-tier web stack to a local-first approach. He shares his experience transitioning from Prisma to developing Overtone—a music curation app leveraging client-side event sourcing and SQLite. The discussion highlights the trade-offs…","author":"The InfoQ Podcast","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts221/v4/32/63/68/326368be-1efd-200e-7749-cc6f5d91a7ad/mza_6955760118795274003.jpg/600x600bb.jpg","durationSec":2617,"lang":"en","topics":["layered-architecture","event-sourcing"],"techs":["general"],"tags":["podcast","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2026-07-27T12:00:06.000Z","popularity":84,"verifiedAt":"2026-11-26T10:58:53.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:53.924Z","updatedAt":"2026-11-26T16:00:53.924Z"}]},{"type":"article","items":[{"id":"6b0857bf3c96f2d34d0b425a","type":"article","provider":"web","url":"https://learn.microsoft.com/en-us/azure/architecture/guide/architecture-styles/n-tier","embedUrl":null,"title":"N-tier Architecture Style","description":"Learn about the benefits, challenges, and best practices for N-tier architectures on Azure, which separates an app into logical layers and physical tiers.","author":"Microsoft Azure Architecture Center","thumbnailUrl":"https://learn.microsoft.com/en-us/media/open-graph-image.png","durationSec":null,"lang":"en","topics":["layered-architecture"],"techs":["general"],"tags":["azure","cloud","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":66,"verifiedAt":"2026-11-26T11:07:38.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857c03c96f2d34d0b43f1","type":"article","provider":"web","url":"https://threedots.tech/post/database-transactions-in-go","embedUrl":null,"title":"Database Transactions in Go with Layered Architecture","description":"As I join a new company, I often feel like an impostor. After all the interviews, they really seem to know what they’re doing. I’m humbled and ready to learn from the best. On one such occasion, a few days in, I dealt with a production outage and asked the most senior engineer for help. They came…","author":"Three Dots Labs","thumbnailUrl":"https://threedots.tech/images/covers/database-transactions-in-go-social.png","durationSec":null,"lang":"en","topics":["layered-architecture"],"techs":["go"],"tags":["software-architecture","databases"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":"2024-09-04T22:00:00.000Z","popularity":50,"verifiedAt":"2026-11-26T11:28:48.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857be3c96f2d34d0b4230","type":"article","provider":"web","url":"https://learn.microsoft.com/en-us/dotnet/architecture/modern-web-apps-azure/common-web-application-architectures","embedUrl":null,"title":"Common web application architectures - .NET","description":"Architect Modern Web Applications with ASP.NET Core and Azure | Explore the common web application architectures","author":"Microsoft Learn","thumbnailUrl":"https://learn.microsoft.com/dotnet/media/dotnet-bot_microservices.png","durationSec":null,"lang":"en","topics":["monolith","layered-architecture","clean-architecture"],"techs":["dotnet"],"tags":["cloud","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":70,"verifiedAt":"2026-11-26T11:25:50.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:59.965Z","updatedAt":"2026-11-26T16:00:59.965Z"}]},{"type":"repo","items":[{"id":"6b0857b23c96f2d34d0b34b1","type":"repo","provider":"github","url":"https://github.com/spring-projects/spring-petclinic","embedUrl":null,"title":"spring-projects/spring-petclinic","description":"A sample Spring-based application","author":"spring-projects","thumbnailUrl":"https://opengraph.githubassets.com/1/spring-projects/spring-petclinic","durationSec":null,"lang":"en","topics":["layered-architecture"],"techs":["java"],"tags":["software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2013-01-09T09:05:18.000Z","popularity":77,"verifiedAt":"2026-11-26T10:55:56.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:50.215Z","updatedAt":"2026-11-26T16:00:50.215Z"},{"id":"6b0857b23c96f2d34d0b3567","type":"repo","provider":"github","url":"https://github.com/TNG/ArchUnit","embedUrl":null,"title":"TNG/ArchUnit","description":"A Java architecture test library, to specify and assert architecture rules in plain Java","author":"TNG","thumbnailUrl":"https://opengraph.githubassets.com/1/TNG/ArchUnit","durationSec":null,"lang":"en","topics":["layered-architecture"],"techs":["java"],"tags":["testing","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"github","publishedAt":"2017-04-21T08:39:20.000Z","popularity":69,"verifiedAt":"2026-11-26T10:55:56.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:50.215Z","updatedAt":"2026-11-26T16:00:50.215Z"}]}],"siblings":[{"slug":"monolith","title":"Monolith","icon":"box","status":"available","current":false},{"slug":"modular-monolith","title":"Modular Monolith","icon":"blocks","status":"available","current":false},{"slug":"layered-architecture","title":"Layered Architecture","icon":"rows-3","status":"available","current":true},{"slug":"hexagonal-architecture","title":"Hexagonal Architecture","icon":"hexagon","status":"available","current":false},{"slug":"clean-architecture","title":"Clean Architecture","icon":"target","status":"available","current":false},{"slug":"onion-architecture","title":"Onion Architecture","icon":"circle-dot-dashed","status":"available","current":false},{"slug":"vertical-slice-architecture","title":"Vertical Slice Architecture","icon":"columns-3","status":"available","current":false},{"slug":"cqrs","title":"CQRS","icon":"split","status":"available","current":false},{"slug":"event-sourcing","title":"Event Sourcing","icon":"scroll-text","status":"available","current":false},{"slug":"event-driven-architecture","title":"Event-Driven Architecture","icon":"zap","status":"available","current":false},{"slug":"microservices","title":"Microservices","icon":"container","status":"available","current":false},{"slug":"ddd-strategic-design","title":"DDD Strategic Design","icon":"map","status":"available","current":false},{"slug":"specification","title":"Specification","icon":"list-filter","status":"available","current":false},{"slug":"circuit-breaker","title":"Circuit Breaker","icon":"zap-off","status":"available","current":false}]}