Skip to content

🚀 Feature: Realtime for Server SDKs and live query results #15950

Open

Description

@rickylabs

🔖 Feature description

Two related Realtime capabilities:

  1. Server-side subscriptions. Let Server SDKs subscribe to Realtime channels with an API key (or a scoped key), so a backend can react to committed changes as they happen. Today the docs say: "We currently are not offering access to realtime with Server SDKs and an API key." The server-side alternatives, webhooks and function event triggers, are documented with "delivery of the event is not guaranteed". They have no replay and no resume position.

  2. Live query results. Let a subscriber listen to a query's result set. The server would:

    • deliver an acknowledged initial snapshot;
    • re-evaluate the query when relevant rows change and push the new result, or a diff;
    • resume from a cursor after a reconnect.

    Realtime queries (February 2026) filter which events a subscriber receives, which is useful. But they don't maintain results. A row that stops matching, ordering or limit windows, and permission changes aren't reflected. There's also no boundary between the initial read and the first event; see Expose subscription acknowledgement on initial connect and reconnect sdk-for-web#197.

🎤 Pitch

  • Server-side authorization. Many apps keep authorization and view composition on their own server. With server subscriptions, a backend can push its own authorized updates without a user session per browser and without sending raw rows to clients. Today the only reliable option is for the backend to record its own change signals, because webhooks may drop events.
  • No snapshot race. Live query results remove the read-then-subscribe race and the refetch loops apps write around it today.
  • Prior request. 🚀 Feature: Realtime Query Listening #2490 originally asked for Firestore-style result listening. It was closed when realtime queries shipped, but those filter events rather than maintain results.
  • Timing. The move from PHP to Rust announced on 22 November seems a good moment. A Realtime service with that throughput and memory profile makes per-subscription re-evaluation far more practical.

A possible first step: a Realtime class in the Server SDKs with API-key auth on project channels, and each delivered event carrying a monotonic position so a server consumer can resume without gaps.

Environment where we hit this: self-hosted Appwrite 2.7.4, Web SDK 29.3.1, node-appwrite 32.0.0.

👀 Have you spent some time to check if this issue has been raised before?

🏢 Have you read the Code of Conduct?

Activity

  1. added
    api / realtime
    product / databases
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api / realtimeproduct / databases

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions