Back to Building apps with Sync: TanStack DB & ElectricSQL
Getting it running: Postgres + Electric locally and in prod
Topic Outcomes
Spin up Electric + Postgres with Docker; understand Postgres requirements (logical replication & REPLICATION role), and the basic deployment ingredients (DB, sync service, app).
Topic Summary
The simplest path is the official Docker Compose that boots Postgres (with wal_level=logical) and Electric. For production, you can self‑host or use Electric Cloud; either way, the three moving parts are: 1) a Postgres 14+ with logical replication, 2) the Electric sync engine (Elixir app packaged as a container), and 3) your client(s) connecting over HTTP (usually via your own proxy).
Topic Sources
https://electric-sql.com/docs/guides/installation & https://electric-sql.com/docs/guides/deployment & https://electric-sql.com/docs/quickstart
Topic Authors
Kyle Mathews