Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
184 views
in Technique[技术] by (71.8m points)

DDD Strategic design: Shared kernel pattern vs Published language pattern

What are the key differentials between the shared-kernel and published-language strategic patterns opted in Domain driven design (DDD)?

question from:https://stackoverflow.com/questions/65858020/ddd-strategic-design-shared-kernel-pattern-vs-published-language-pattern

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Both shared-kernel and published-language are part of the Context Maps patterns collection. Context Mapping is a very useful and powerful tool that allows one to see what kind of dependencies link systems together. They can also highlight teams relationships.
A shared-kernel means that 2 systems are strongly coupled by sharing a shared artifact (model, DLL, Jar, DB, ...). If those 2 systems are handled by 2 different teams, it means that whenever Team A change something, it will impact Team B and vice versa.
A published-language is a model that is well documented that everyone can understand and translate. Think of iCal, VCard or such things.
Michael Pl?d did a great job on documenting Context Maps patterns, you can have a look here.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...