Clean Architecture


Chapter 33 Case Study: Video Sales



Download 6,37 Mb.
Pdf ko'rish
bet184/259
Sana26.02.2022
Hajmi6,37 Mb.
#465587
1   ...   180   181   182   183   184   185   186   187   ...   259
Bog'liq
Clean Architecture A Craftsman’s Guide to Software Structure and Design by Robert C. Martin (z-lib.org)

Chapter 33 Case Study: Video Sales 
302
Keeping these options open will allow us to adapt the way we deploy the 
system based on how the system changes over time. 
D e pe n d e n c y M a n ag e m e nt
The flow of control in Figure 33.2 proceeds from right to left. Input occurs 
at the controllers, and that input is processed into a result by the interactors. 
The presenters then format the results, and the views display those 
presentations.
Notice that the arrows do not all flow from the right to the left. In fact, most 
of them point from left to right. This is because the architecture is following 
the 
Dependency Rule
. All dependencies cross the boundary lines in one 
direction, and they always point toward the components containing the 
higher-level policy. 
Also notice that the 
using
relationships (open arrows) point 
with
the flow of 
control, and that the 
inheritance
relationships (closed arrows) point 
against
the flow of control. This depicts our use of the Open–Closed Principle to 
make sure that the dependencies flow in the right direction, and that changes 
to low-level details do not ripple upward to affect high-level policies.
C o n c lu s i o n
The architecture diagram in Figure 33.2 includes two dimensions of 
separation. The first is the separation of actors based on the Single 
Responsibility Principle; the second is the Dependency Rule. The goal of both 
is to separate components that change for different reasons, and at different 
rates. The different reasons correspond to the actors; the different rates 
correspond to the different levels of policy. 
Once you have structured the code this way, you can mix and match how you 
want to actually deploy the system. You can group the components into 
deployable deliverables in any way that makes sense, and easily change that 
grouping when conditions change.
www.EBooksWorld.ir



Download 6,37 Mb.

Do'stlaringiz bilan baham:
1   ...   180   181   182   183   184   185   186   187   ...   259




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish