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, 11:52 AM
Authorized User
 
Join Date: May 2015
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb What should be Domain Events?

On page 526 you are showing a CreateAuction request. This command and the events generated after that command completely skip the Domain model. If the Business wants to know the creator and any change to the auction details (in eBay you can make changes to the auction until the bid starts) should there be a CreateAuction and UpdateAction commands and the logging of the events too? What I meant by logging is that storing those commands and events in the events store.
 
Old May 30th, 2015, 03:36 PM
Wrox Author
 
Join Date: May 2015
Posts: 59
Thanks: 1
Thanked 5 Times in 5 Posts
Default

If it helps, you can see the full code for that example on github https://github.com/elbandit/PPPDDD/b...ion/Auction.cs.

To answer your question, yes I would definitely store events in the event store that the business needs to be aware of. So if there is an UpdateAuction command, then you would store an event indicating what happened - e.g. AuctionUpdated - in the event store.





Similar Threads
Thread Thread Starter Forum Replies Last Post
domain jarekski Visual Basic 2005 Basics 0 April 5th, 2015 03:41 AM
Question on the Domain Events Framework indiecodemonkey BOOK: Professional ASP.NET Design Patterns 0 December 27th, 2011 02:03 PM
Creating a Domain seananderson Windows Server 4 September 13th, 2007 02:14 PM
Same pages for sub domain from main domain vivek_inos ASP.NET 1.0 and 1.1 Professional 1 February 13th, 2007 10:15 AM
http://domain or http://www.domain anshul HTML Code Clinic 9 August 11th, 2004 01:09 AM





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