Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Hands-On Domain-Driven Design with .NET Core
Hands-On Domain-Driven Design with .NET Core

Hands-On Domain-Driven Design with .NET Core: Tackling complexity in the heart of software by putting DDD principles into practice

eBook
$37.99
Paperback
$46.99
Subscription
Free Trial
Renews at $12.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Hands-On Domain-Driven Design with .NET Core

Chapter 1. Why Domain-Driven Design

The software industry appeared back in the early 1960s and is growing ever since. We have heard predictions that someday all software would be written and we will not need more software developers, but this prophecy has never become a reality, and the growing army of software engineers is working hard to satisfy continually increasing demand.

However, from the very early days of the industry, the number of projects that were delivered very late and massively over budget, plus the number of failed projects is overwhelming. The 2015 CHAOS Report by Standish Group (https://www.projectsmart.co.uk/white-papers/chaos-report.pdf) suggests that from 2011 to 2015 the percentage of successful IT projects remains unchanged on a level of just 22%. Over 19% of all projects failed, and the rest have experienced challenges. These numbers are astonishing. Over four decades a lot of methods have been developed and advertised to be a silver bullet for software project management, but there is no or little change in the number of successful projects.

One of the critical factors that define the success of any IT project is understanding the problem, which the system to be designed, suppose to solve. We all very familiar with systems that do not solve problems they claim to answer or do it very inefficiently. Understanding the problem is also one of the core principles of the Lean Startup methodology, proposed by Eric Ries in his book The Lean Startup by Crown Publishing. Both Scrum and XP software development methodologies embrace interacting with users and understanding their problems.

Domain-Driven Design (DDD) term was coined by Eric Evans in his now-iconic book Domain-Driven Design: Tackling Complexity in the Heart of Software by Addison-Wesley back in 2004. More than a decade after the book was published, interest in practices and principles, described in the book, started to grow exponentially. Many factors influence such growth in popularity, but most important one is that DDD explains how people from software industry can build an understanding of their users needs and create software systems, which solve the problem and make an impact.

In this chapter, we will discuss how understanding the business domain, building domain knowledge, and distinguishing essential complexity from accidental complexity, can help in creating software that matters.

The objective of this chapter is to understand:

  • Problem space versus solution space
  • What went wrong with requirements
  • Understanding complexity
  • The role of knowledge in software development
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Apply DDD principles using modern tools such as EventStorming, Event Sourcing, and CQRS
  • Learn how DDD applies directly to various architectural styles such as REST, reactive systems, and microservices
  • Empower teams to work flexibly with improved services and decoupled interactions

Description

Developers across the world are rapidly adopting DDD principles to deliver powerful results when writing software that deals with complex business requirements. This book will guide you in involving business stakeholders when choosing the software you are planning to build for them. By figuring out the temporal nature of behavior-driven domain models, you will be able to build leaner, more agile, and modular systems. You’ll begin by uncovering domain complexity and learn how to capture the behavioral aspects of the domain language. You will then learn about EventStorming and advance to creating a new project in .NET Core 2.1; you’ll also and write some code to transfer your events from sticky notes to C#. The book will show you how to use aggregates to handle commands and produce events. As you progress, you’ll get to grips with 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. In addition to this, you’ll learn how to refactor your code and cover event versioning and migration essentials. By the end of this DDD book, you will have gained the confidence to implement the DDD approach in your organization and be able to explore new techniques that complement what you’ve learned from the book.

Who is this book 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. Intermediate level of competence in JavaScript will be helpful to follow the UI chapters.

What you will learn

  • Discover and resolve domain complexity together with business stakeholders
  • Avoid common pitfalls when creating the domain model
  • Study 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
  • Get acquainted with CQRS and to-the-point read models with projections
  • Practice building one-way flow UI with Vue.js
  • Understand how a task-based UI conforms to DDD principles

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Apr 30, 2019
Length: 446 pages
Edition : 1st
Language : English
ISBN-13 : 9781788833684
Vendor :
Microsoft
Category :
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Apr 30, 2019
Length: 446 pages
Edition : 1st
Language : English
ISBN-13 : 9781788833684
Vendor :
Microsoft
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$12.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$129.99 billed annually
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$179.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 173.97
Hands-On Domain-Driven Design with .NET Core
$46.99
Hands-On Design Patterns with C# and .NET Core
$38.99
C# 8.0 and .NET Core 3.0 – Modern Cross-Platform Development
$87.99
Total $ 173.97 Stars icon
Visually different images

Table of Contents

12 Chapters
Why Domain-Driven Design? Chevron down icon Chevron up icon
Language and Context Chevron down icon Chevron up icon
EventStorming Chevron down icon Chevron up icon
Designing the Model Chevron down icon Chevron up icon
Implementing the Model Chevron down icon Chevron up icon
Acting with Commands Chevron down icon Chevron up icon
Consistency Boundary Chevron down icon Chevron up icon
Aggregate Persistence Chevron down icon Chevron up icon
CQRS - The Read Side Chevron down icon Chevron up icon
Event Sourcing Chevron down icon Chevron up icon
Projections and Queries Chevron down icon Chevron up icon
Bounded Context Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.3
(20 Ratings)
5 star 65%
4 star 15%
3 star 0%
2 star 20%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Kindle Customer Jun 05, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
If you want to write your software better then you need DDD.This book strikes a great balance with theory and practice. It covers Event Storming and Event Modelling with code examples, where there isn't a great deal of books that I have seen..I've red the blue book by Eric Evans and red book as well DDD Distilled by Vaughan Vernon as a Scott Millett on DDD.So I finished this Kindle version last night, although not executed the code as I didn't want that distraction. I've been reading it most evenings over the course of a week or two. I will be running the code over the next week or so and excited to get acquainted with EventStore by Greg Young.The book will confirm my thoughts on where we go wrong with writing software in the later chapters.
Amazon Verified review Amazon
Neil Apr 04, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book is interesting and tallies with other material. Interesting insight from an experienced hand. Worth a read or two.
Amazon Verified review Amazon
Andy Dec 27, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
For developers interested in DDD and for whom some of the other DDD books may seem a bit theoretical that's a must read. Alexey has a great way of explaining concepts and presenting them hands on with simple code examples.
Amazon Verified review Amazon
adnan May 25, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
BBM & Conway Law to end the story made me laugh because my current job involves maintaining such a system. Most of the day I spent writing horrible code. It occurred to me when I started learning .Net Core recently that technology changes suck as I have to update my skills every then & now. So I tried to give another try learning DDD after giving up on DDD couple of years back.So I started reading Eric Events Blue Book which is thick & has a lot of thought-provoking theory. I only read the first 7 seven chapters. Then started reading Jimmy book last week along with watched Plural Site videos as well but was burdened with "It depends on analogy a lot". Enough with history but this book is so refreshing that I actually want to write code & experiment it.I love the idea of using a rather simple domain like Ad application. I am no DDD practitioner because I have failed multiple times in the past just to keep EF Context out of my Domain Model rather I should call it Persistence Model.The key takes away from this book is:- Event Sourcing is not really difficult to implement as it sounds in start- Aggregate & Context Boundary was explained very well with a crisp exampleWhat this book lacks:- Event Sourcing downsides when there are changes to the model, perhaps an Entity is completely removed, or associations are changed in a way that it requires changes to existing data, like new property is added.- How to fix bugs since Aggregate is persisted to the event stream. Is it just like adding another event to stream so the state can be corrected like debit/credit?- How to fix Legacy systems, perhaps complete rewrite, but who will listen to an inexperienced DDD developer?Note: This is an initial review, I will be reading it slow & implementing what is being told, and see how I feel.
Amazon Verified review Amazon
Tjitte Nov 18, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Being a developer for almost 10 years now I have had my share of using patterns and applying different architectural approaches. This book gave me new insights and teached me soms ways of work as event sourcing, which I always saw as something 'to complex' or 'too performance heavy', but now as something really useful and in most cases the most efficient way for building a system. Also the DDD part in general is something every developer should embrace in my opinion. Soo.. great book! Thank you Alexey for sharing your knowledge.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.