The following example is realtime comments application, built with LiveSync, showing interactive user communication. Active users contribute their thoughts and feedback by creating new comments. Users also have the flexibility to edit and delete their previously posted comments.

LiveSync live comments example

When a user adds, edits, or deletes a comment, the updates are stored in a Postgres database. The Database Connector uses an outbox pattern to broadcast the changes from the database to the frontend client.

The Models SDK is subscribed to changes in the database’s state and updates the frontend client. These updates are immediately reflected in the application’s user interface in realtime.