Skip to main content

Backend

ElectricSQL is designed to work with any Postgres-backed system. You don't need a specific (or, in fact, any) backend framework to use Electric.

However, it's common to manage the Postgres data model using a migrations system. These are often provided by your web framework. Because ElectricSQL's DDLX Rules are applied using DDL migrations, this section shows you how to do this using some popular frameworks.

Some frameworks also provide or work with Postgres change data capture tooling, such as logical replication consumers. This can be useful for Event sourcing.