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]. This works because Postgres writes every committed change to its write-ahead log, in commit order, whether you ask it to or not. Logical decoding with the built-in `pgoutput` plugin turns that into a stream of row changes[2].
[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/blog/why-we-read-the-wal “## The WAL already has the answer Postgres writes every committed change to its write-ahead log, in commit order, whether you ask it to or not. Logical decoding with the built-in `pgoutput` plugin turns that into a stream of row changes.”
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-read-changes-from-postgres
https://agents.driftbase.dev/how-does-driftbase-avoid-triggers-and-dual-writes
https://agents.driftbase.dev/how-does-driftbase-work-with-rds-aurora-cloud-sql-neon-and-supabase
All questions: https://agents.driftbase.dev/