Architecture

Layered Architecture

Description

Organizes the system into horizontal layers, where each layer has a specific role (Presentation, Business, Persistence, Database).

Where to use

  • Enterprise Web Applications.

Real World Example

Presentation Layer -> Service Layer -> DAO Layer -> Database.

Code Example

class LayeredArchitecture:\n    def __init__(self):\n        pass\n\n    def execute(self):\n        print('Executing Layered Architecture')