From the course: Software Architecture: Patterns for Developers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Layered

Layered

From the course: Software Architecture: Patterns for Developers

Start my 1-month free trial

Layered

- The layered application pattern is a classic and well known pattern. A layered application is an application that has several layers. Each layer has a distinct responsibility. The ID behind the layered application is that called in the code flow downwards. A layer can call the layer below it, but not the one above it. There are five layers that recur often the presentation layer contains the user interface. The application layer is the layer that receives calls from the user interface and translates it into calls that the business layer can understand. The business layer contains all the business logic and the persistence layer is where we put the code that knows how to interact with the database. Finally, the database is where we store the actual data. If necessary, you can add more layers like a caching layer, or in some scenarios, two layers could be merged into one. There are some advantages of the layered architecture.…

Contents