O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hands-On Domain Driven Design with .NET

Book Description

Learn to 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.

About This Book
  • Understand and implement the DDD approach to software design and development
  • Learn how DDD applies directly to various architectural styles such as REST, reactive systems, and microservices
  • Provide a level of independence to the teams, more refined capabilities of services, and more decoupled interactions
Who This Book Is For

This book is for .NET developers, who know C# at intermediate level; for those who seek to deliver value, not just write code. Intermediate level of competence in JavaScript will be helpful to follow the UI chapters.

What You Will Learn
  • Discover domain complexity together with business stakeholders
  • Avoid common pitfalls when creating the domain model
  • Understand the concept of bounded context and aggregate
  • Design and build temporal models based on behavior and not only data
  • Explore benefits and drawbacks of event-sourcing
  • Figure out CQRS and to-the-point read models with projections
  • Practice building one-way flow UI with Vue.js
  • Learn how task-based UI matches with DDD principles
  • Understand how to develop complex systems in ever changing world
In Detail

Developers across the world are rapidly adopting Domain-Driven Design principles that deliver powerful results in writing software dealing with complex business requirements. This book will help you involve business stakeholders into discussions about the software you are planning to build for them. By figuring out the temporal nature of behavior-driven domain models and understanding that language lives in a context, you will be able to build leaner, more agile, and modular systems, which adapt to the constant flow of changes that life brings.

The book starts off by uncovering domain complexity and how to capture the behavior aspect of the domain language. You will understand EventStorming before using it on design level. With more knowledge about the domain, we will create a new .NET Core project and write some code to transfer our events from sticky notes to C#. The book will show how to use aggregates to handle commands and produce events. You will learn about Bounded Contexts, Context Map, Event Sourcing, and CQRS. After translating domain models into executable C# code, you will create a frontend for your application using Vue.js. You will learn about refactoring towards deeper insight and essentials about event versioning and migrations.

After reading this book, you will be confident in implementing the DDD approach at your organization and also explore new techniques that complement your learning from the book.

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.