Domain-Driven Design And Microservices Explained with Examples

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

boundaries of your system’s microservices? Have you been slowed down by the technical complexity of your codebase? Has your team been stepping on each other’s toes? If your answers to any of these questions are yes, then applying Domain Driven Design to your microservices is likely to be useful to your team. One of the difficult choices in microservices architecture is coming up with boundaries and deciding whether a particular piece of code should be turned into a microservice. Technical teams often make this decision without taking a business perspective on what really makes sense. Using DDD the boundaries for microservices are better designed by bringing both technical and business teams together to achieve the project’s goals. This book takes key concepts from DDD and applies them to microservices architecture. Using an example business domain, and end-to-end code examples, you’ll learn to design and implement microservices using DDD. You’ll also understand DDD’s relationships to data mesh, team topologies, and micro-frontends. Bring technical and business teams together and achieve your project’s goals. The term Domain-Driven Design (DDD) was coined by Eric Evans in his seminal book, Domain-Driven Design: Tackling Complexity in the Heart of Software, published in 2003, and was well ahead of its time. In recent years, microservice architecture has gained a lot of attention as one of the most popular evolutionary architecture styles. DDD is an immensely useful tool for designing scalable systems/platforms and a solid basis for designing better microservices architecture. DDD is also useful for building distributed data architectures including data mesh, and for organizing a large team using team topologies.

Author(s): Sandeep Jagtap
Publisher: Leanpub
Year: 2023

Language: English
Pages: 68

Table of Contents
Introduction to Domain-Driven Design
What is Domain Driven Design aka DDD
Why use Domain Driven Design
When to use Domain Driven Design
DDD and Friends
Basics of microservices
Domain Events - Understanding building blocks of DDD
Use case 1
Use case 2
Use case 3
Use case 4
Use case 5
DDD Concept 1 - Domain Event
Entity - Understanding building blocks of DDD
Use case 6
DDD Concept 2 - Entity
Value Object - Understanding building blocks of DDD
Use case 7
DDD Concept 3 - Value Object
Is it value object or entity
Domain Service - Understanding building blocks of DDD
Use case 8
DDD Concept 3 - Domain Service
Refactoring/Improving existing codebase or existing microservices
Recap of what we covered so far
What is Domain Layer / Domain Model
Understading Aggregates and relationship to microservices
Use case 9
Use case 10
Aggregates
Relationship to microservices
Splitting Aggregates
Other scenarios in which Aggregates may be split
Bounded Contexts
Use case 11
Subdomains
How Subdomain and Bounded Context Map to each other
Bounded Context and team organization
Bounded Context and its relation to microservices
Team Topologies
Ubiquitous Language
Context Maps
Modular Monoliths
Event Sourcing
CQRS
Finding Bounded Contexts
Event Storming
Domain Storytelling
DDD and Relation to Data Mesh
github code links
References
Microfrontends and DDD