Translating the Business Processes into Events and Commands
Think over all your CRUD experience that MVC frameworks pushed you into. You’re used to thinking about application functionality in terms of managing records in a database. In that mindset you’ve likely modeled user registration as creating a user. Given that background and the fact that events are in the past tense, it might feel natural to define a UserCreated event. Let’s examine that choice.
Recall how we saidhere that we’re dealing with domain messages—messages that capture the actual process we’re modeling. We’re not writing software for ourselves. We’re writing it for other people, so we have to take off our “software developer” hat and put on our “the rest of humanity” hat. ...
Get Practical Microservices now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.