Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Domain-Driven Refactoring
  • Table Of Contents Toc
Domain-Driven Refactoring

Domain-Driven Refactoring

By : Alessandro Colla, Alberto Acerbis
5 (2)
close
close
Domain-Driven Refactoring

Domain-Driven Refactoring

5 (2)
By: Alessandro Colla, Alberto Acerbis

Overview of this book

As software development continues to grow, mastering domain-driven design (DDD) will help transform your approach to complex systems. Filled with actionable insights and practical examples, this book is your essential guide to implementing DDD principles, covering its key concepts and practical applications in modern architecture. Alessandro, an eCommerce specialist and DDD expert with 30 years of experience, and Alberto, a dedicated backend developer, tap into their extensive expertise to help you refactor your monolith into a modular structure, whether it be evolving into microservices or enhancing a maintainable monolith, resulting in a system that adapts to changing business needs and non-functional requirements. You’ll explore vital DDD patterns like strategic design with bounded contexts and ubiquitous language, improving communication between technical and domain experts. The chapters take you through modeling techniques to manage complexity and increase flexibility, while also addressing microservices integration, including inter-service communication, transaction management, and data strategies. By the end of this book, you’ll be able to decompose a monolith and refine its architecture for adaptability, all while ensuring business logic remains central to your software design and development.
Table of Contents (18 chapters)
close
close
Lock Free Chapter
1
Part 1: Why Use Domain-Driven Design to Tackle Complexity?
6
Part 2: Refactoring Legacy Systems
12
Part 3: Moving from Monolith to Microservices
16
Other Books You May Enjoy
17
Index

Services and modules

In DDD, services and modules play a pivotal role in maintaining the clarity and separation of concerns within your application. Understanding the distinction between domain services and application services is crucial for architecting a robust and maintainable system.

Let’s start with services and see what the two types of service are, the differences between them, and when to use them. As usual, this exploration will be illustrated by examples in the domain of our brewery ERP.

Domain services

Domain services are an integral part of the domain model, encapsulating business logic that doesn’t naturally fit within an aggregate. They are used when a particular operation or process spans multiple entities or when the behavior does not belong to any specific entity. Domain services are pure, meaning they do not have side effects and typically do not rely on external systems such as databases or messaging systems.

Consider the brewery ERP...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Domain-Driven Refactoring
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon