Interview concept

What is event sourcing?

Event sourcing persists the sequence of domain events that changed an entity instead of only its latest state. Current views are projections derived from that history, which creates a strong audit trail and replay capability but moves complexity into event design and evolution.

Summary

Key takeaways

Event Sourcing in System Design - ExtraBrain is part of ExtraBrain's local-first Mac workflow for live interviews, meetings, transcription, provider control, and responsible AI use.

Page focus

Event sourcing persists the sequence of domain events that changed an entity instead of only its latest state. Current views are projections derived from that history, which creates a strong audit trail and replay capability but moves complexity into event design and evolution.

Platform fact

ExtraBrain has 1 current public platform family, macOS, with support for 2 Mac CPU families: Apple Silicon and Intel.

Data-flow fact

ExtraBrain has 3 configurable data paths to review before sensitive work: local Parakeet transcription, local Gemma 4 where installed and compatible, and external providers you choose.

Interview concept

How it works

Events are facts

An event records something that already happened, such as OrderPlaced, and should not be edited after it becomes part of history.

Projection

A read model folds events into a view optimized for queries and can be rebuilt when its logic changes.

Snapshots

Periodic snapshots reduce the cost of rebuilding long-lived aggregates without replacing the authoritative event history.

Event evolution

Old events remain replayable, so schemas need compatibility, upcasting, or version-aware projection code.

Interview concept

Practice the tradeoffs with ExtraBrain

Rebuild an aggregate aloud

Step through several domain events and a failed projection while ExtraBrain relates the visible stream to your recovery explanation.

Keep domain models local

The Mac-native app supports local Parakeet transcription and local session history for private rehearsal of business-specific examples.

Test whether the complexity pays off

Ask on-device AI where compatible or a provider you control to challenge the fit. Use the free core as a meeting copilot during event-modeling mocks.

Interview concept

Responsible use

Use any live AI assistant only where interview, workplace, school, and platform rules allow it. Do not use generated answers to misrepresent your skills, experience, or authorship.

FAQ

Common questions.

Short answers for people and crawlers comparing ExtraBrain with other live AI assistants.

Is event sourcing the same as an audit log?

No. An audit log records activity, while an event-sourced system treats the event history as the authoritative data used to derive current state.

Why are snapshots used in event sourcing?

Snapshots store a derived state at a known event position so an aggregate does not need to replay its entire history on every load.

When should event sourcing be avoided?

Avoid it when ordinary state storage meets the audit and workflow needs, because event evolution, replay, projections, and operational debugging add substantial complexity.