Musab
Musab17mo ago

How to build real-time collaborative app with Convex?

If I use normal mutation it will run the function every time which is not a best practice. I am trying to achieve something like web sockets.
4 Replies
ballingt
ballingt17mo ago
What is this mutation doing? Normally a mutation is the way to go about this, except in cases of very high frequency events like mousemove or on-keydown events when typing
ballingt
ballingt17mo ago
Throttling Requests by Single-Flighting
For write-heavy applications, use single flighting to dynamically throttle requests. See how we implement this with React hooks for Convex.
Musab
MusabOP17mo ago
Thanks I will check it

Did you find this page helpful?