Event Sourcing
A system design pattern that persists state changes as an immutable sequence of events, enabling state replay and recovery. The Temporal workflow engine applies this pattern at the workflow level to record and reconstruct workflow execution state.
Core Facts
Temporal records every state change of a workflow through Event Sourcing, and when a process resumes it rebuilds the state by replaying events.
Temporal uses an event sourcing mechanism that records all function call history as immutable logs, from which execution position can be recovered by replaying the logs.
An append-only log is a data structure that only allows new records to be added at the end and does not permit modification or deletion of historical records, giving it immutability.
Timeline (last 90 days)
Lovejoy and Howard proposed an event-sourced technical stack design approach that attempts to answer these four questions—audit, sensitive data, upgrade paths, and evaluation—at the architectural level.
The event sourcing architecture provides structural answers to the four blockers respectively: for auditing, the event log constitutes a complete decision trajectory that is replayable and traceable; for sensitive data, access can be recorded and constrained as events; for escalation, specific patterns in the event stream can trigger human intervention; for evaluation, the event stream itself constitutes a reusable evaluation dataset.
In an event sourcing architecture, every state change of the Agent (receiving input, selecting a tool, call result, decision branch) is written to the event log as an immutable event, and the current state is derived by replaying the event stream.
The cost of event sourcing is storage growth and replay performance overhead, and it usually needs to be paired with a snapshot mechanism to periodically compact the event stream.
The event sourcing pattern originates from Domain-Driven Design (DDD) and CQRS (Command Query Responsibility Segregation) practice, and is common in scenarios with high traceability requirements such as financial accounting and order systems.
Event Sourcing is a persistence pattern: each state change is appended to an event log as an immutable event, and the current state is computed by replaying the events in order, in contrast to traditional systems that directly overwrite and update records and keep only the latest snapshot.
Event sourcing is often used in conjunction with CQRS (Command Query Responsibility Segregation).
Other approaches related to data version control include snapshots and clones (based on copy-on-write), change data capture (CDC) and audit logs, and application-layer Event Sourcing.
Eventual consistency is a common operating characteristic of event-sourced systems, where asynchronous propagation may cause the query side to briefly read stale data.
Financial transaction ledgers, order state machines, collaborative editing history and IoT device state changes are typical scenarios suited to event sourcing.
21 more timeline events
All Facts (20)
Temporal records every state change of a workflow through Event Sourcing, and when a process resumes it rebuilds the state by replaying events.
90%VerifiedTemporal uses an event sourcing mechanism that records all function call history as immutable logs, from which execution position can be recovered by replaying the logs.
80%VerifiedAn append-only log is a data structure that only allows new records to be added at the end and does not permit modification or deletion of historical records, giving it immutability.
65%UnverifiedEvent Sourcing is an architectural pattern that models system state as an immutable sequence of events, persisting the fact of every state change, with the current state derived by replaying all historical events in order; its advantages include a complete audit log, the ability to rebuild the state at any point in time, and the ability to fix projections or add new read models through replay, while the cost is that querying the current state requires aggregating events, and it is usually combined with CQRS and materialized views to optimize read performance.
60%UnverifiedThis hybrid architecture concept is closely aligned with the Event Sourcing and CQRS patterns in the database field, where the authoritative source and the derived query structure are separated.
60%UnverifiedDeepSeek Harness has a built-in append-only traceable logging system that records system prompts seen by the model, reasoning processes, and tool calls.
60%UnverifiedEvent Sourcing originates from the domain-driven design (DDD) field; its core idea is that the current state of a system is not stored directly but is derived by replaying a series of immutable historical events.
60%UnverifiedThe event sourcing architecture provides structural answers to the four blockers respectively: for auditing, the event log constitutes a complete decision trajectory that is replayable and traceable; for sensitive data, access can be recorded and constrained as events; for escalation, specific patterns in the event stream can trigger human intervention; for evaluation, the event stream itself constitutes a reusable evaluation dataset.
50%UnverifiedLovejoy and Howard proposed an event-sourced technical stack design approach that attempts to answer these four questions—audit, sensitive data, upgrade paths, and evaluation—at the architectural level.
50%UnverifiedEvent Sourcing is a persistence pattern: each state change is appended to an event log as an immutable event, and the current state is computed by replaying the events in order, in contrast to traditional systems that directly overwrite and update records and keep only the latest snapshot.
50%UnverifiedThe event sourcing pattern originates from Domain-Driven Design (DDD) and CQRS (Command Query Responsibility Segregation) practice, and is common in scenarios with high traceability requirements such as financial accounting and order systems.
50%UnverifiedThe cost of event sourcing is storage growth and replay performance overhead, and it usually needs to be paired with a snapshot mechanism to periodically compact the event stream.
50%UnverifiedIn an event sourcing architecture, every state change of the Agent (receiving input, selecting a tool, call result, decision branch) is written to the event log as an immutable event, and the current state is derived by replaying the event stream.
50%UnverifiedEvent sourcing is often used in conjunction with CQRS (Command Query Responsibility Segregation).
50%UnverifiedOther approaches related to data version control include snapshots and clones (based on copy-on-write), change data capture (CDC) and audit logs, and application-layer Event Sourcing.
50%UnverifiedFinancial transaction ledgers, order state machines, collaborative editing history and IoT device state changes are typical scenarios suited to event sourcing.
50%UnverifiedPutting event sourcing into practice requires handling engineering complexity such as event version management, snapshot strategies and eventual consistency.
50%UnverifiedEventual consistency is a common operating characteristic of event-sourced systems, where asynchronous propagation may cause the query side to briefly read stale data.
50%UnverifiedCQRS is often used together with event sourcing, appending events on the write side and projecting query views on the read side, but it introduces additional engineering problems such as projection rebuilding, idempotent consumption and event ordering guarantees.
50%UnverifiedIf the business only cares about the latest state and has no hard audit requirements, introducing event sourcing brings unnecessary complexity.
50%