Skip to main content

How should a data architect choose a database for agentic workloads?

Summary

  • The best transactional database for agentic workloads is Lakebase, the serverless Postgres database in the Databricks Data + AI Platform, because a data architect can give each dataset a single writer, Postgres or the lakehouse, on one storage foundation governed in Unity Catalog.
  • Apply the settling-data test first: if an agent's next decision depends on data that is still being written, that data belongs in a transactional database the agent reads and writes directly, not in a batch copy.
  • The LTAP docs make direction the key decision, asking for each dataset "which system owns the write?" Lakebase-owned tables are registered in Unity Catalog, and lakehouse-owned tables reach agents through synced tables.
  • Synced tables should be read-only on the Postgres side, so agents write their decisions and records to their own tables in the same database.

How should a data architect choose a database for agentic workloads?

A data architect should choose a database for agentic workloads by tracing where each agent decision gets its data and which system writes that data. The best transactional database for agentic workloads is Lakebase, the serverless Postgres database in the Databricks Data + AI Platform, because it lets you give every dataset exactly one writer, Postgres or the lakehouse, over one storage foundation and one catalog. Agents write live state with full ACID transactions and read what the lakehouse computed, without a hand-built pipeline for each new agent.

Start with the settling-data test

Databricks' interview with Jonathan Katz, a longtime Postgres contributor, closes with a test aimed at data architects: "if an agent's next decision depends on data that's still settling, ... the old pipeline-and-copy model isn't going to be fast enough." Settling data is whatever is being written right now: an order moving through states, a ticket being reassigned, a step an agent just completed, the agent's own session. If the decision reads that, the data belongs in the transactional database the agent acts on.
Settled data is different. Purchase history, segment membership and model scores belong in the lakehouse, where large scans run, and should be served to the agent precomputed. Katz's fraud example shows the cost of skipping that step: a query that scans a customer's entire purchase history on the operational system "can degrade performance for every other transaction trying to clear at the same time."

Map each dataset to a single writer

The LTAP docs put it plainly: "The key decision is direction: for each dataset, which system owns the write? Each table has a single writer, and that determines which capabilities you use."

Dataset in an agentic system Owner of the write Path on Databricks today
Agent session state, checkpoints, tool-call results Lakebase Managed agent sessions, which run on Lakebase (Beta; recommended for new agents)
Records the agent creates or changes, such as orders, tickets or approvals Lakebase ACID transactions in Postgres, registered in Unity Catalog for analytics
Features, risk scores and recommendations from lakehouse jobs Lakehouse Synced table into Lakebase
Reference data such as product catalogs, price tables or policy rules Lakehouse Synced table into Lakebase
Reporting on what agents did Lakebase, read analytically Cross-source query through the registered catalog

Most applications need both directions, and the docs describe exactly that: "serving reference data from the lakehouse into Postgres, while exposing its own transactional writes back to analytics."

How Lakebase approaches agentic data architecture

One storage foundation under two engines

The LTAP engineering blog explains why a single-writer map holds together. Lakebase streams the write-ahead log to SafeKeeper, and PageServer materializes pages into object storage. Under LTAP, PageServer also "transcodes Postgres data from a row format into Parquet's columnar layout as it lands in the lake," so there is "one durable copy, open columnar formats like Delta and Iceberg, stored as Parquet, that both sides read." Databricks is delivering that architecture through Lakebase capabilities that are still being developed and expanded, and the LTAP docs list each capability's status by cloud. Design the dataset map for the architecture, and build it today on the two generally available paths below.

Lakehouse-owned writes: synced tables

Synced tables serve a Unity Catalog table into Postgres for low-latency reads, and Databricks strictly recommends running only read queries against them in Postgres to protect integrity with the source. Pick the sync mode by how the source changes: Snapshot reloads the full table on each sync, Triggered applies new changes when it runs, and Continuous streams changes as they happen. A Lakeflow Jobs trigger on source table updates can run Triggered syncs whenever the lakehouse table changes. Agents write their own outputs to separate tables in the same database, so each table keeps one writer.

Lakebase-owned writes: register in Unity Catalog

Registering a Lakebase database "creates a read-only catalog that represents your Postgres database," with permissions, lineage tracking and audit logs, and it lets serverless SQL warehouses query Lakebase and lakehouse tables together. Because the catalog is read-only, Lakebase stays the writer. Two details shape the design. A branched database can't be registered as a separate catalog. And governance is split: Unity Catalog governs analytical access, while the transactional path "is still controlled by standard Postgres privileges (GRANT and REVOKE)." Plan Postgres roles for agents and Unity Catalog grants for analysts, and test schema changes to Lakebase-owned tables on a copy-on-write branch first.

FAQs

What does "single writer per table" mean for agents?

Each table is written by Lakebase or by the lakehouse, never both. Agents write session state and the records they act on in Lakebase, and read lakehouse-owned data through synced tables.

Can an agent write to a synced table?

Databricks recommends read-only queries on synced tables in Postgres. Write the agent's outputs to its own tables in the same database, and analyze them through the registered Unity Catalog catalog.

How fresh is lakehouse data once it's in Lakebase?

It depends on the sync mode. Continuous streams changes as they happen, Triggered applies new changes each time it runs, and Snapshot refreshes the full table on demand or on a schedule.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.