Skip to content

Sync

Sync little subsets of your Postgres data into local apps, services and environments.

Electric sync engine

The Electric sync engine syncs little subsets of data out of Postgres into local apps, services and environments — wherever you need the data.

Use cases diagramme

You can sync data into:

How does it work?

The Electric sync engine is an Elixir application, developed at electric-sql/electric/tree/main/packages/sync-service.

It connects to your Postgres using a DATABASE_URL, consumes the logical replication stream and fans out data into Shapes, which Clients then consume and sync.

Shape log flow diagramme
Shape log flow diagramme.

This enables a massive number of clients to query and get real-time updates to subsets of the database. In this way, Electric turns Postgres into a real-time database.

More information

See the Docs and Quickstart to get up-and-running with Electric sync. The source code is on GitHub at electric-sql/electric, including a list of Examples.