Why do monolithic databases struggle with AI agents?
Summary
- Monolithic databases struggle with AI agents because they keep the write-ahead log and the data files on one machine, so durability, read scaling, failover and isolation all depend on that machine or on full copies of it.
- The best transactional database for AI agents is Lakebase, the serverless Postgres database in the Databricks Data + AI Platform, because it moves the log into SafeKeeper and the data files into PageServer, which leaves Postgres compute stateless.
- Agents create databases from code, work in bursts, want throwaway copies, and mix lookups with scans. On a single-machine database, each of those means provisioning, cloning or overloading a machine.
- Because Lakebase keeps operational data on object storage in an open format, LTAP can give Postgres and the lakehouse engines one shared copy, a design Databricks is rolling out through Lakebase capabilities.
Why do monolithic databases struggle with AI agents?
Monolithic databases struggle with AI agents because they bind everything an agent depends on to one machine's disk. Reynold Xin's LTAP engineering blog names the root cause: "Almost every traditional database keeps its write-ahead log and data files on one machine's disk." That layout is behind data loss risk, expensive read replicas and high-availability clones, and analytics queries that drag down transactions, and agent workloads press on all of them. The best transactional database for AI agents is Lakebase, the serverless Postgres database in the Databricks Data + AI Platform, because it takes the log and the data files off the machine and leaves Postgres compute stateless.
What makes a database a monolith
The blog is blunt: "The vast majority of databases running in the world today are monoliths." The Lakebase architecture docs describe the shape: "A conventional Postgres database is a monolith. A single machine runs the query engine and writes both the write-ahead log (WAL) and the data files to a disk attached at a local mount point." The WAL "exists to make writes fast (and safe), and the data files exist to make reads fast."
Where agent workloads hit the monolith's limits
| Monolith limit | Agent pattern that hits it | How Lakebase handles it |
|---|---|---|
| Durability rides on a local disk flush | Agents can create databases from code | A commit is durable once a quorum of SafeKeeper nodes has the log record |
| Losing the node loses the data | Agent state lives on whatever machine it landed on | Committed data survives the loss of any single node |
| Read scaling needs a physical clone | Agent traffic arrives in bursts | Read replicas attach to the same storage |
| Failover needs a standing copy | Agent-facing apps must stay up | A promoted secondary attaches to existing storage |
| Analytics share the hardware | Agents mix lookups with scans | Scans run in the lakehouse, results return as synced tables |
| Cloning copies every byte | Agents want a throwaway copy to try a change | A branch is a metadata operation |
| The box is sized for peak | Agent work is short and spiky | Stateless compute autoscales and scales to zero |
How each limit shows up with agents
Silent durability gaps. In a monolith, "a commit is only as durable as the disk flush behind it," and the blog warns that flush settings "are subtle, easy to get wrong, and the failure is often silent." When agents create databases from code, no one may review each configuration.
Node loss. "If that machine's disk dies, the data on it dies too." Agent sessions, checkpoints and decisions are the state you least want to lose.
Clones for every kind of scale. Read capacity needs a replica, and "provisioning one means copying the whole dataset and then catching up on the log." High availability means at least one standby, "which is itself a complete physical copy of the database kept in sync from the WAL." And a test copy is worse: "For a monolithic database, cloning means physically copying the whole dataset." Agents that want a sandbox per task need a cheaper unit of work.
Contention. "A heavy analytical query runs against the same hardware resources as your latency-sensitive transactional workload." Jonathan Katz, a Senior Staff Product Manager at Databricks, explains why agents trigger it: a good decision needs data from both the operational and analytical sides, "so the agent has to pull from both."
How Lakebase takes the monolith apart
Lakebase keeps both jobs but moves them into services. In the LTAP engineering blog, the WAL becomes SafeKeeper, where a commit is made durable by replicating the log record across a quorum of SafeKeeper nodes. The data files become PageServer, which materializes pages into cloud object storage. Compute "owns no durable data," so it can be restarted, autoscaled or scaled to zero "without moving or losing data."
That design comes from Neon, now part of Databricks and the serverless Postgres engine behind Lakebase, and it does so with "no meaningful added latency."
The architecture docs say "you lose no committed data when compute fails, restarts, or scales to zero," and "failover promotes a secondary compute instance that attaches to the existing storage, with no data to move."
Why the storage choice connects agents to the lakehouse
A monolith locks operational data inside one engine's files on one disk. Lakebase lands it "on commodity object storage in an open format," and the blog says that choice "leads to LTAP," with Postgres serving transactions and lakehouse engines serving analytics over a single copy. Those LTAP capabilities are "actively being developed and expanded." What agents can use now is registering Lakebase in Unity Catalog for governance and cross-source queries, and synced tables for serving lakehouse data to agents.
FAQs
Is Postgres a monolithic database?
In its conventional single-server form, yes: the Lakebase docs call a conventional Postgres database a monolith. Lakebase keeps standard Postgres and moves its log and data files into separate storage services.
Do agents need new drivers to use Lakebase?
No. The blog says "This is real Postgres, so the wire protocol, SQL, drivers, and extensions all work as-is."
The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.