Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
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

Product type Book
Published in Jun 2024
Publisher Packt
ISBN-13 9781803230788
Pages 256 pages
Edition 1st Edition
Languages
Author (1):
Ahmet Meric Ahmet Meric
Profile icon Ahmet Meric
Toc

Table of Contents (16) Chapters close

Preface 1. Part 1: Architectural Foundations
2. Chapter 1: Introduction to Advanced Spring Boot Concepts 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

Understanding Event Sourcing

In this section, we’re going to talk about Event Sourcing. We will also examine Event-Driven Architecture (EDA) and will break down the differences between EDA and Event Sourcing. Additionally, we mentioned CQRS previously, but in this section we will learn where CQRS fits into the whole picture, and I’ll explain it all in a way that’s easy to understand.

Event-Driven Architecture

In this section, we’re going to break down some key concepts in EDA. Figure 2.4 shows some basic examples of events and commands in this architecture.

Figure 2.4: Examples of events and commands

Figure 2.4: Examples of events and commands

First up, we have events. Events are basically things that happen – such as a user logging in, or an order being placed. Then we have commands. Commands are like orders or requests, telling something else to do something.

Events can be communicated as event notifications, and commands as messages. These are pretty...

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 €14.99/month. Cancel anytime