dataloaderD
Convex Community2y ago
2 replies
dataloader

Presence without touching the DB

Have you guys considering exposing the ability to query active connections (with appropriate authorization of course)? Theoretically, "presence" could be done with convex without ever touching the datastore, since it holds active websockets connections to all clients.

in most cases it would obviate the need for somethign like https://stack.convex.dev/presence-with-convex
and would be 1) faster, 2) lower network bandwidth, 3) lower contention (from mutation transactions)
and could make your platform subsume things like https://github.com/yjs/y-websocket
Some patterns for incorporating presence into a web app leveraging Convex, and sharing some tips & utilities I built along the way.
Implementing Presence with Convex
GitHub
Websocket Connector for Yjs. Contribute to yjs/y-websocket development by creating an account on GitHub.
GitHub - yjs/y-websocket: Websocket Connector for Yjs
Was this page helpful?