How are they handling real time subscriptions? Like, how do they figure out when a row is updated? Postgres has replication functionality, but how are they achieving same with SQLite?
The Realtime API is implemented via Server-Sent Events (SSE). Generally, it consists of 2 operations:
* establish SSE connection
* set client subscriptions
SSE events are sent for create, update and delete record operations.
Pocketbase is mainly a single application with SQLite embedded, so, whenever you update records through PocketBase's API, the main application always knows that.
This is different with postgres, since it may be connected by several different applications/servers remotely.
The Realtime API is implemented via Server-Sent Events (SSE). Generally, it consists of 2 operations:
SSE events are sent for create, update and delete record operations.Pocketbase is mainly a single application with SQLite embedded, so, whenever you update records through PocketBase's API, the main application always knows that.
This is different with postgres, since it may be connected by several different applications/servers remotely.