𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Domain-Driven Design And Microservices Explained with Examples

✍ Scribed by Sandeep Jagtap


Publisher
Leanpub
Year
2023
Tongue
English
Leaves
68
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


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.

✦ Table of Contents


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


πŸ“œ SIMILAR VOLUMES


Architecture Patterns with Python: Enabl
✍ Harry Percival, Bob Gregory πŸ“‚ Library πŸ“… 2020 πŸ› O'Reilly Media 🌐 English

As Python continues to grow in popularity, projects are becoming larger and more complex. Many Python developers are taking an interest in high-level software design patterns such as hexagonal/clean architecture, event-driven architecture, and the strategic patterns prescribed by domain-driven desig

Architecture Patterns with Python: Enabl
✍ Harry Percival, Bob Gregory πŸ“‚ Library πŸ“… 2020 πŸ› O'Reilly Media 🌐 English

<div><p>As Python continues to grow in popularity, projects are becoming larger and more complex. Many Python developers are taking an interest in high-level software design patterns such as hexagonal/clean architecture, event-driven architecture, and the strategic patterns prescribed by domain-driv

Architecture Patterns with Python: Enabl
✍ Harry Percival, Bob Gregory πŸ“‚ Library πŸ“… 2020 πŸ› O'Reilly Media 🌐 English

<div><p>As Python continues to grow in popularity, projects are becoming larger and more complex. Many Python developers are taking an interest in high-level software design patterns such as hexagonal/clean architecture, event-driven architecture, and the strategic patterns prescribed by domain-driv

Architecture Patterns with Python: Enabl
✍ Harry J.W. Percival, Bob Gregory πŸ“‚ Library πŸ“… 2020 πŸ› O'Reilly Media 🌐 English

<div> <p>As Python continues to grow in popularity, projects are becoming larger and more complex. Many Python developers are now taking an interest in high-level software architecture patterns such as hexagonal/clean architecture, event-driven architecture, and strategic patterns prescribed by dom

Applying Domain-Driven Design and Patter
✍ Jimmy Nilsson πŸ“‚ Library πŸ“… 2006 πŸ› Addison-Wesley Professional 🌐 English

I found the book to be very pragmatic and useful but I don't think its for begginers, despite the author says that this book is for "a wide target audience" and that if you don't have some knowledge of "object-orientation and C#" interest and enthusiasm will compensate for any lack of prior knowledg