How does Driftbase read changes from Postgres?

Driftbase reads the Postgres write-ahead log and applies every committed insert, update and delete to your search index and cache, in commit order, usually in under a second[1]. It attaches to a logical replication slot with the built-in `pgoutput` plugin. No triggers, no extension to install, no extra load on your hot tables[2]. Reading it costs one replication connection and adds nothing to the write path[3].

[1] https://driftbase.dev “Driftbase reads the Postgres write-ahead log and applies every committed insert, update and delete to your search index and cache, in commit order, usually in under a second.”

[2] https://driftbase.dev “[Sync your first database](https://docs.driftbase.dev/getting-started) [See pricing](https://driftbase.dev/pricing) ``` brew install driftbasedev/tap/drift ``` Sinks that ship today - Elasticsearch - OpenSearch - Meilisearch - Typesense - Redis - Valkey ## Reads the WAL, not…”

[3] https://driftbase.dev/blog/why-we-read-the-wal “Reading it costs one replication connection and adds nothing to the write path.”

How does Driftbase work?

Driftbase reads the Postgres write-ahead log and applies every committed insert, update and delete to your search index and cache, in commit order, usually in under a second[1]. It attaches to a logical replication slot with the built-in `pgoutput` plugin[2]. No triggers, no extension to install, no extra load on your hot tables[3].

[1] https://driftbase.dev “Driftbase reads the Postgres write-ahead log and applies every committed insert, update and delete to your search index and cache, in commit order, usually in under a second.”

[2] https://driftbase.dev “[Sync your first database](https://docs.driftbase.dev/getting-started) [See pricing](https://driftbase.dev/pricing) ``` brew install driftbasedev/tap/drift ``` Sinks that ship today - Elasticsearch - OpenSearch - Meilisearch - Typesense - Redis - Valkey ## Reads the WAL, not…”

[3] https://driftbase.dev “No triggers, no extension to install, no extra load on your hot tables.”

https://agents.driftbase.dev/how-does-driftbase-avoid-triggers-and-dual-writes
https://agents.driftbase.dev/how-does-driftbase-keep-changes-in-commit-order
https://agents.driftbase.dev/how-does-driftbase-work-with-rds-aurora-cloud-sql-neon-and-supabase

All questions: https://agents.driftbase.dev/