Clean Architecture



Download 6,37 Mb.
Pdf ko'rish
bet137/259
Sana26.02.2022
Hajmi6,37 Mb.
#465587
1   ...   133   134   135   136   137   138   139   140   ...   259
Bog'liq
Clean Architecture A Craftsman’s Guide to Software Structure and Design by Robert C. Martin (z-lib.org)

Conclusion
215
A data structure, in contrast, is a set of public data variables that have no 
implied behavior. ORMs would be better named “data mappers,” because 
they load data into data structures from relational database tables. 
Where should such ORM systems reside? In the database layer of course. 
Indeed, ORMs form another kind of 
Humble Object
boundary between the 
gateway interfaces and the database.
S e rv i c e L i s te n e r s
What about services? If your application must communicate with other 
services, or if your application provides a set of services, will we find the 
Humble Object
pattern creating a service boundary? 
Of course! The application will load data into simple data structures and 
then pass those structures across the boundary to modules that properly 
format the data and send it to external services. On the input side, the service 
listeners will receive data from the service interface and format it into a 
simple data structure that can be used by the application. That data structure 
is then passed across the service boundary.
C o n c lu s i o n
At each architectural boundary, we are likely to find the 
Humble Object
pattern lurking somewhere nearby. The communication across that boundary 
will almost always involve some kind of simple data structure, and the 
boundary will frequently divide something that is hard to test from something 
that is easy to test. The use of this pattern at architectural boundaries vastly 
increases the testability of the entire system.
www.EBooksWorld.ir


This page intentionally left blank 
www.EBooksWorld.ir


217
24

Download 6,37 Mb.

Do'stlaringiz bilan baham:
1   ...   133   134   135   136   137   138   139   140   ...   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