Skip to content
Het fundament eronderData foundation

Live updates

De wijziging van een collega landt op jouw scherm, en alleen op schermen die het mogen zien.

Documenten, taken, formulieren, automatiseringen, projecten en de voortgang van lange taken stromen naar elk open scherm zodra ze veranderen. Je drukt niet op verversen, en niemand schrijft pollingcode. Elke stroom wordt door de server geopend tegen een vaste tabel, vaste kolommen en ons eigen project, dus een feed kan nooit verder reiken dan de persoon die kijkt.

  • 0

    query details accepted from the browser

  • 5 min

    before a stream must prove access again

  • 10

    named feeds in the server-owned registry

Het probleem dat dit oplost

Zonder een gedeelde basis bouwt elk team deze randgevallen opnieuw, en anders.

The sync engine pointed straight at the browser

Let a client choose its own tables and filters and one missing check streams every project to whoever asks. Here the browser sends a feed name and nothing else; the query is built on the server.

The person who left an hour ago

Access was checked once, when the stream opened, and their tab is still receiving updates. Access checked once is access that never expires. Five minutes is the longest that can last here.

The screen that jumps

A slightly stale update lands over a fresh edit, then the real one arrives and the text visibly changes twice. People read that flicker as lost work, and they are not always wrong.

Hoe het werkt

Het mechanisme van begin tot eind, zoals het in de repository is geïmplementeerd.

  1. 1

    The browser asks by name

    The client requests a named feed along with the organization and project it believes it is in. All of it is validated before anything else runs.

  2. 2

    The server checks membership

    Your session and role are verified, and a requested project is checked against the organization that claims it. A failure returns an error, never rows.

  3. 3

    The server builds the real query

    Table, columns and filters come from a server-only registry, and the sync secret is attached server-side. None of it is visible to the page.

  4. 4

    Updates settle in order

    Each save returns the PostgreSQL transaction ID it committed under. The screen holds your instant change until that exact transaction arrives.

Interactief voorbeeld

Bekijk het in werking

Deze rondleiding toont het geïmplementeerde backendcontract zonder account, credentials of providercalls.

Interactief voorbeeld

Follow the steps this actually runs

  1. Optimistic updateHuidig
  2. Authenticated writeWachtend
  3. Authorized ShapeWachtend
  4. Receipt matchedWachtend

Stap 1 van 4: Optimistic update

Alleen deterministische voorbeelddata. De interactie gebruikt geen account-, provider- of netwerkverbinding.

Kernpunten

Waarom dit belangrijk is

The server picks what streams

The browser asks for a feed by name. Which table, which columns and which filters that name means is decided by a server-only registry.

Access is proven again every five minutes

Streams are cut at five minutes and must re-prove membership to continue. Someone removed from the project loses the feed at the next check, not whenever they close the tab.

Your own edit never flickers

Your change appears at once, then waits for the exact database transaction that saved it before settling. A slightly older update cannot win.

Technische garanties

Wat dit wel en niet belooft

Veiligheidsgrens

Growth Kit-records staan vandaag niet op de live stroom. Accounts, gesprekken, besluiten, campagnes en financiële posten verversen bij de volgende leesactie, niet op het moment dat een collega opslaat. Tien feeds stromen live: documenten, formulieren, automatiseringen, projecten, organisaties, contentbuckets en -items, variabelen, en procesruns en mijlpalen.

Implementatiebewijs

De grens hierboven is geen claim maar code. Deze bestanden dragen het contract:

  • src/routes/api/electric.ts
  • src/realtime/server-proxy.ts
  • src/realtime/registry.server.ts
Vragen

Veelgestelde vragen

Waar Live updates op rust

De documentatie beschrijft dezelfde contracten die deze pagina demonstreert.