ElectricSQL's architecture is documented here:
https://electric-sql.com/docs/reference/architecture#primary...
https://electric-sql.com/docs/reference/architecture#data-fl...
The docs explain how the Electric sync service publishes a logical replication stream that the Postgres database subscribes to. The Electric sync service is responsible for validating permissions based on the DDLX configuration.