electric
electric copied to clipboard
Sync little subsets of your Postgres data into local apps and services.
Can run multiple Electric's against a single PG. Can failover between and load balance across them. Document and demonstrate.
We currently: ``` [query a shape] -> [save to log] -> [serve log] ``` This is slow to first byte for large shapes. We should: ``` [query a shape] ->...
Build a simple SaaS app which proxies shape requests through an API and only allows certain shapes to certain roles.
The code below is unable to discriminate that the message is a `ChangeMessage`: ```ts if (message.headers.action === "insert") { // message is still ControlMessage | ChangeMessage } ``` It would...
Open api spec shows the offset in the format "number/number", the types and the repose from the sync service have "number_number".
Right now I believe we're sending an `up-to-date` control message at the end of every log (correct me if wrong). This is problematic as the default cache timeout is 60...
I spent a while debugging this. Basically the problem is that when I selected some data from a shape in one route of my app e.g. `/page/1`, the selected data...
- Can't change the replication slot - Persistent replication slot grows while electric is not connected
For example electric-sql/electric-next#182 changed the CubDB storage format (by [reordering the terms in the tuple](https://github.com/electric-sql/electric-next/pull/182/files#diff-3fea7cf7976e09e017504f11f3688d6f5092aeabd377d257158d3787cb45c76dR205)) So if you synced a shape with a previous version then upgraded to that version,...