Interview concept

What is the transactional outbox pattern?

The transactional outbox pattern writes domain data and an event record to the same database transaction. A separate relay publishes pending records to a broker, avoiding the inconsistency that occurs when a database write succeeds but a direct message publish fails.

Summary

Key takeaways

Transactional Outbox Pattern - ExtraBrain is part of ExtraBrain's local-first Mac workflow for live interviews, meetings, transcription, provider control, and responsible AI use.

Page focus

The transactional outbox pattern writes domain data and an event record to the same database transaction. A separate relay publishes pending records to a broker, avoiding the inconsistency that occurs when a database write succeeds but a direct message publish fails.

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

One atomic commit

The application updates its business tables and inserts the outbox row in one local transaction, so both happen or neither happens.

Asynchronous relay

A polling publisher or change-data-capture process reads committed outbox rows and sends them to the message broker.

At-least-once delivery

A relay can crash after publishing but before marking a row complete, so consumers must handle duplicate events.

Ordering scope

Sequence numbers or aggregate keys preserve the order that matters without requiring one total order for the entire system.

Interview concept

Practice the tradeoffs with ExtraBrain

Expose the dual-write failure

Draw the database and broker sequence while ExtraBrain captures why a crash between them loses an event and how the outbox closes that gap.

Review implementation choices locally

Mac-native local transcription and local session history help keep proprietary event schemas and failure cases on the device.

Evaluate relay options

Use compatible local AI or a bring-your-own provider to compare polling with CDC. The free core meeting copilot can record a collaborative design critique.

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.

What problem does the transactional outbox solve?

It prevents a database state change from committing without the event that other services need to learn about that change.

Does an outbox provide exactly-once delivery?

Usually not. It reliably records intent but relays commonly publish at least once, so consumers still need idempotent handling.

How are outbox rows published?

A worker can poll the table, or a change-data-capture connector can stream committed rows from the database log.