Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Distributed Domain Driven Design Resources

I am quite confident with developing DDD applications, but one area which is continuing to cause me problems is when two applications integrate with each other. I am struggling to find any useful books or resources on the subject. Books such as Patterns of EAI go into depth about messaging patterns and message construction, but don't really explain how to architect systems that make use of these patterns.

I've searched high and low and I'm quite sure there are no sample applications that demostrate how to integrate two systems. I understand the concept of asynchronous messaging, but again can't find good examples of how to apply it.

Resources on SOA seem to keep repeating the same concepts without demonstarting how to implement them, and more often than not seem more concerned with selling me products.

Here are the sort of questions I am struggling to answer:

  1. Should each application have it's own copy of the data? For example, should every application within an organisation have it's own list of clients, which it updates upon the receipt of a message?

  2. At what point in the DDD stack are messages passed? Are they the result of domain events?

  3. Can I combine asynchrounous messaging and WCF or do I have to chose? Do I use WCF for request/response and messaging for publish/subscribe?

  4. How does one DDD application consume the services of another? Should one DDD application query another system for its data via its application services, or should it already have its own local copy of the data, as mentioned in point 1?

  5. Apparently I can't have a transaction across two systems. How do I avoid this?

If I sound confused it's because I am. I'm not looking for answers to the above questions, just pointing in the direction of resources that will answer this and simmilar questions.

like image 216
Paul T Davies Avatar asked Aug 31 '11 12:08

Paul T Davies


2 Answers

I've been making a similar transition. My advice:

  • Start at http://cqrsinfo.com/.
  • Listen the the Distributed Podcast.
  • Catch any of Greg Young's talks. For example, here is Eric Evans interviewing Greg. He's got some all-day sessions that are recorded as well.
  • Read/listen to anything from Udi Dahan (poscasts, lectures, articles, etc.). He's got some good stuff on InfoQ.
  • Wait for Greg's book.
  • Read whatever you can find on EDA (Event Driven Architecture).
like image 174
Eric Farr Avatar answered Oct 16 '22 09:10

Eric Farr


In addition to what Eric Farr had said, it may be worth looking closely at Part 4 of the DDD book (Strategic Design). It does not approach the problem from 'Distributed' angle but has a lot of information on how to integrate applications (Bounded Contexts). Patterns like Anticorruption Layer can be very helpful when designing at the boundary of the application.

like image 36
Dmitry Avatar answered Oct 16 '22 10:10

Dmitry