You are on page 1of 9

DISENO Y ARQUITECTURA DE

SOFTWARE

Fred Duarte
MBA, Msc, Ingeniero de Computación, PMP
Que he
Aprendido?
Overview

Application Layer
Dependency Inversion
Principle Pros and Cons
Demo
Layer Dependencies

Dependency inversion Inversion


of control Independent
deployability Flexible and
maintainable
U se rs

Presentation

Sale sC ontr olle r

C ro s s - c u tt in g co n c e r n s
A p p l icat i o n
ICreateSaleCommand

IDate Se r v ice

DateService
CreateSaleCommand

ID a ta ba se Se r v ice IInv e ntorySe rvice

Domain

Sale

Persistence Infrastructure
DatabaseService Inv ento ry S e rv ic e
Composition
I m p l e m e nts
Database OS

ADSII
Why Use an ApplicationLayer

U se rs

Pros

Cross-Cutting Concerns
Presentation

Focus on use cases A p p l icat i o n

Easy to understand D o m a in

Follows DIP Persistence Infrastructure

Database OS
Why Use an Application
Layer

Pros Cons
Focus on use cases Additional layer cost
Easy to understand Requires extra thought IoC
Follows DIP is counter-intuitive

ADSII
Conclusiones
Summary
Application Layer
Dependency Inversion
Principle Pros and Cons
Demo

You might also like