• No products in the cart.

Students

20

Lectures

30

Course Duration

Unlimited Duration

Updated

October 17, 2022

Kafka documentation: Event sourcing is a style of application design where state changes are logged as a time-ordered sequence of records. Kafka's support for very large stored log data makes it an excellent backend for an application built in this style.
Profile Photo
Annapurna Singh
0
24

Courses

490

Students

Event sourcing as an application architecture pattern is rising in popularity. Event sourcing involves modeling the state changes made by applications as an immutable sequence or “log” of events. Instead of modifying the state of the application in-place, event sourcing involves storing the event that triggers the state change in an immutable log and modeling the state changes as responses to the events in the log. We previously wrote about event sourcing, Apache Kafka and how they are related. In this post, I explore these ideas further and show how stream processing and, in particular, Kafka Streams helps to put Event sourcing and CQRS into practice.


There’s a number of great introductory articles, so this is going to be a very brief introduction. With event sourcing, instead of storing the “current” state of the entities that are used in our system, we store a stream of events that relate to these entities. Each event is a fact, it describes a state change that occurred to the entity (past tense!). As we all know, facts are indisputable and immutable.


Having a stream of such events it’s possible to find out what’s the current state of an entity by folding all events relating to that entity; note, however, that it’s not possible the other way round — when storing the “current” state only, we discard a lot of valuable historical information.



    • Thinking in Events Unlimited
    • The Real World Modelled in Software Unlimited
    • State-Based vs. Event-Based Systems Unlimited
    • Illustrating Event-Based vs. State-Based Systems with Chess Unlimited
    • Setting Up Confluent Cloud Unlimited
    • Storing Data as Events Unlimited
    • Classic CRUD: Create, Read, Update, and Delete Unlimited
    • Event Sourcing: Create and Read Only Unlimited
    • Getting Current State Unlimited
    • Event Sourcing Preserves Everything Unlimited
    • Event Sourcing in Practice Unlimited
    • Why Store Events Unlimited
    • Event Sourcing is Evidentiary Unlimited
    • Events are Recoverable Unlimited
    • Event Data is Insightful Unlimited
    • Command Query Responsibility Segregation (CQRS) Unlimited
    • Large Chronological Reductions Unlimited
    • How CQRS Works Unlimited
    • Implementing CQRS with Kafka Unlimited
    • Adding ksqlDB Unlimited
    • Hands On: Trying Out Event Sourcing with Confluent Cloud Unlimited
    • Incorporating Event Storage into Your System Unlimited
    • CRUD vs. CQRS Unlimited
    • Use Case: The New York Times Website Unlimited
    • Change Data Capture (CDC) Unlimited
    • Outbox Pattern Unlimited
    • Event Sourcing vs. Event Streaming Unlimited
    • CQRS with Data in Motion Unlimited
    • CQRS Applied to Microservices Unlimited
    • Progressing to Event Streaming Unlimited

Popular Courses

top
Managed by Ernesto.net © 2021. All rights reserved.