Domain-Driven Design: Tackling Complexity in the Heart of Software



Download 7,21 Mb.
Pdf ko'rish
bet233/343
Sana17.11.2022
Hajmi7,21 Mb.
#867526
1   ...   229   230   231   232   233   234   235   236   ...   343
Bog'liq
Eric Evans 2003 - Domain-Driven Design - Tackling Complexity in the Heart of Software

Figure 14.3. Two 
BOUNDED CONTEXTS
 formed to allow efficient routing
algorithms to be applied


Our requirement was to take a 
Routing Service
request, translate it into terms the 
Network
Traversal Service
could understand, then take the result and translate it into the form a
Routing Service
is expected to give.
This means it was not necessary to map everything in these two models, but only to be able to
make two specific translations:
Route Specification
List
of location codes
List of 
Node
IDs 
Itinerary
To do this, we have to look at the meaning of an element of one model and figure out how to
express it in terms of the other.
Starting with the first translation (
Route Specification
List
of location codes), we have to
think about the meaning of the sequence of locations in the list. The first in the list will be the
beginning of the path, which will then be forced to pass through each location in turn until it
reaches the last location in the list. So the origin and destination are the first and last in the list,
with the customs clearance location (if there is one) in the middle.
Figure 14.4. Translation of a query to the Network Traversal Service


(Mercifully, the two teams used the same location codes, so we don't have to deal with that level
of translation.)
Notice that the reverse translation would be ambiguous, because the network traversal input
allows any number of intermediate points, not just one specifically designated as customs
clearance point. Fortunately, this is no problem because we don't need to translate in that
direction, but it gives a glimpse of why some translations are impossible.
Now, let's translate the result (

Download 7,21 Mb.

Do'stlaringiz bilan baham:
1   ...   229   230   231   232   233   234   235   236   ...   343




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2025
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