Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Spring Boot 3.0

You're reading from   Mastering Spring Boot 3.0 A comprehensive guide to building scalable and efficient backend systems with Java and Spring

Arrow left icon
Product type Paperback
Published in Jun 2024
Publisher Packt
ISBN-13 9781803230788
Length 256 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ahmet Meric Ahmet Meric
Author Profile Icon Ahmet Meric
Ahmet Meric
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Part 1: Architectural Foundations
2. Chapter 1: Introduction to Advanced Spring Boot Concepts FREE CHAPTER 3. Part 2: Architectural Patterns and Reactive Programming
4. Chapter 2: Key Architectural Patterns in Microservices – DDD, CQRS, and Event Sourcing 5. Chapter 3: Reactive REST Development and Asynchronous Systems 6. Part 3: Data Management, Testing, and Security
7. Chapter 4: Spring Data: SQL, NoSQL, Cache Abstraction, and Batch Processing 8. Chapter 5: Securing Your Spring Boot Applications 9. Chapter 6: Advanced Testing Strategies 10. Part 4: Deployment, Scalability, and Productivity
11. Chapter 7: Spring Boot 3.0 Features for Containerization and Orchestration 12. Chapter 8: Exploring Event-Driven Systems with Kafka 13. Chapter 9: Enhancing Productivity and Development Simplification 14. Index 15. Other Books You May Enjoy

Key Architectural Patterns in Microservices – DDD, CQRS, and Event Sourcing

This chapter is all about appreciation of the backbone of microservices – the central patterns that make our software designs strong, scalable, and effective.

So first off, we’ll want to delve into the world of domain-driven design. It’s an approach to software that fits business concerns to any given software project. It’s akin to ensuring our software speaks the same lingo as the business challenges it’s working to answer.

Coming up is Command Query Responsibility Segregation. It’s a nice way to divide how we manipulate data in two – one for updating and another for retrieving. It divides our software duties in a cleaner, more efficient way.

Next, there is Event Sourcing. We record each change as a series of events here. It is like an itemized account of everything that has happened – one which can be very powerful for looking back at the history of our data and choices.

As we progress through this chapter, we will understand why architectural patterns are important and how to apply them in order to build our microservices correctly. We will learn not only what architectural patterns are but their practical application as well. In this chapter, we’re going to cover the following main topics:

  • Introduction to architectural patterns in microservices
  • Domain-Driven Design (DDD)
  • Command Query Responsibility Segregation (CQRS)
  • Event Sourcing
  • Brief overview of other architectural patterns
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image