Hands-On Domain-Driven Design with .NET Core
Tackling complexity in the heart of software by putting DDD principles into practice
Alexey Zimarev
BIRMINGHAM - MUMBAI
Hands-On Domain-Driven Design with .NET Core
Copyright 2019 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Richa Tripathi
Acquisition Editor: Chaitanya Nair
Content Development Editor: Rohit Singh
Technical Editor: Gaurav Gala
Copy Editor: Safis Editing
Project Coordinator: Vaidehi Sawant
Proofreader: Safis Editing
Indexer: Tejal Daruwale Soni
Graphics: Alishon Mendonsa
Production Coordinator: Nilesh Mohite
First published: April 2019
Production reference: 1300419
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78883-409-4
www.packtpub.com
To my wonderful family: my wife Olga, our sons Denis and Miklail, and our Siberian husky Taiga. Thank you for your patience and for giving me time and space to complete this big work. Without your support, this book would have never been published.
To my friend and colleague Srgio Silveira Vaqueiro. We learned a lot from each other and I am very happy to have an opportunity to work with you. Nearly all the code in this book is based on the code we've prepared for the Hands-on Event Sourcing workshop that we deliver together.
mapt.io
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
Packt.com
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.packt.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at customercare@packtpub.com for more details.
At www.packt.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Contributors
About the author
Alexey Zimarev is a software architect with a present focus on domain models, Domain-Driven Design (DDD), event sourcing, message-driven systems and microservices, coaching, and mentoring. Alexey is also a contributor to several open source projects, such as RestSharp and MassTransit, and is the organizer of the DDD Norway meetup.
About the reviewers
Marcin Budny is a software developer with over a decade of experience in designing and building systems. He specializes in getting to the bottom of things and finding the worst-case scenarios. Mostly focused on the .NET ecosystem, he likes to venture into other territories to steal good ideas.
Marcin works mostly with Poland-based companies that cooperate with partners around the globe. That has resulted in a broad spectrum of challenges that he has had to face, which he has now turned into topics to share with his local software development community.
In this book, Marcin debuts as a reviewer.
Nick Tune is the coauthor of two books, Patterns, Principles and Practices of Domain-Driven Design (Wrox) and Designing Autonomous Teams and Services (O'Reilly), and frequently writes about technical leadership at NT.Coding().
Packt is searching for authors like you
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Preface
This book will help you solve complex business problems by understanding users better, finding the right problem to solve, and building lean, event-driven systems to give your customers what they really want. You will be taken through the fundamentals of Domain-Driven Design (DDD) principles and how it can be applied using modern tools such as EventStorming, Event Sourcing, and CQRS. Through this book, you will learn how DDD applies directly to various architectural styles, such as REST, reactive systems, and microservices. You will empower teams to work flexibly with improved services and decoupled interactions.
Who this book is for
This book is for .NET developers who have an intermediate level understanding of C#, and for those who seek to deliver value, not just write code. An intermediate level of competence in JavaScript will be helpful for the UI chapters.
What this book covers
, Why Domain-Driven Design? , covers the concepts of problem and solution spaces, requirements specifications, complexity, knowledge, and ignorance. These topics have a significant impact on how and what we deliver.
, Language and Context, deep dives into the importance of language and explains Ubiquitous Language.
, EventStorming, explores one of the most popular techniques for domain modeling and goes through some practical tips on how to organize useful workshops between domain experts and developers.
, Designing the Model, goes deeper into the modeling process, with more of a focus on artifacts that can help us to start writing code and deliver initial prototypes as soon as possible.
Next page