Wrox Programmer Forums
|
BOOK: Patterns, Principles and Practices of Domain-Driven Design
This is the forum to discuss the Wrox book Patterns, Principles and Practices of Domain-Driven Design by Scott Millett; ISBN: 978-1-118-71470-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Patterns, Principles and Practices of Domain-Driven Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 30th, 2015, 07:12 AM
Authorized User
 
Join Date: May 2015
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default Out of order messages

On Page 224, you talk about messages arriving out of order. In that section, you talk about a message PaymentAccepted was received before another message was arrived (with the users address).

How do I know a Message B should be processed only after Message A is processed? In the example, should I access the address of a customer (for example John Doe) from the database and if it is not there, should I conclude that another message has not arrived?
 
Old May 30th, 2015, 07:50 AM
Wrox Author
 
Join Date: May 2015
Posts: 59
Thanks: 1
Thanked 5 Times in 5 Posts
Default

Yeah, you got it. If the customer's address is not in the database, you know that a message should put it there at some point. So you put the message back on the queue and it gets tried again later.

At some point you have stop retrying messages because there is a problem. NServiceBus (and any message bus) will put the message on the error queue after a certain number of re-tries, so you will be notified of the problem.
 
Old May 30th, 2015, 08:41 AM
Authorized User
 
Join Date: May 2015
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default Order of messages

Trying to fix my brain to think "messaging" way
 
Old May 30th, 2015, 09:12 AM
Wrox Author
 
Join Date: May 2015
Posts: 59
Thanks: 1
Thanked 5 Times in 5 Posts
Default

It does require a bit of brain re-wiring but you seem to be getting there quite quickly... which is good because you will have to teach all of your colleagues soon
 
Old May 30th, 2015, 10:41 AM
Authorized User
 
Join Date: May 2015
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Red face DDD

Many of my colleagues and our director are DDD fans. The director has been to Eric vans training. Jimmy' Bogards team has developed some projects for us. In one of the project, we use his MediatR.

We have occasional study on DDD and micro services. The challenge is always bringing the interest to practice in the midst of business priorities. The migration to a distributed environment is a big challenge too.

Your DDD book sits on my desk and has recommended to colleges.
 
Old May 30th, 2015, 10:58 AM
Wrox Author
 
Join Date: May 2015
Posts: 59
Thanks: 1
Thanked 5 Times in 5 Posts
Default

Thanks. I'm really happy that you liked it and recommend it. I enjoyed it answering your questions, and I can tell you have a good understanding of the material





Similar Threads
Thread Thread Starter Forum Replies Last Post
Specific order, need order from XSL not from input xml format pAperBlaze XSLT 4 September 10th, 2013 11:32 AM
sends two messages instead of one?! shazza Biztalk 0 September 10th, 2007 03:19 PM
Messages RobCarter VB Databases Basics 1 September 13th, 2006 03:03 PM
Messages with ASP AmitG Classic ASP Basics 3 March 24th, 2004 12:54 PM
document node order vs sort node order. ladyslipper98201 XSLT 2 June 5th, 2003 11:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.