Skip to main content

Layered Architecture Pattern

Learn Layered Architecture Pattern (Software Architecture Patterns, Architectural Patterns) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

What is Layered Architecture? Layered Architecture (also called n-tier architecture) organizes an application into horizontal layers , where each layer has a specific responsibility and depends only on the layer directly beneath it. The Classic 3-Tier Layout • Each layer only talks to the layer directly below it (strict layering) - or optionally to any layer below (relaxed layering). • A typical Spring Boot project maps this almost 1:1: @RestController -> @Service -> @Repository -> Database.

More lessons in Software Architecture Patterns