Rust / Latency Questions
Questions for you guys!
1. If I use the Rust client, do I get the same automatic updates on the objects that I am used to on React? Or is that something I would have to implement on my side?
2. When an action or mutation changes a row or adds a row in a DB, what is the expected latency from the moment the mutation call is done to the moment it is reflected on the object that queries that DB on the client side? Particularly, I am interested in the latency that is added for certain actions by having to go through the DB rather than sending a result directly.
4 Replies
Hey there!
1. The rust crate is a full client. It supports subscriptions and everything. It's the basis for future clients in other languages, like python
2. Commit time from an action to a mutation is normally < 20ms. Propagation time to the client depends on distance from us-east. You could expect the whole process to take 40-120ms in general
(but the propagation time to client will be there for the action result as well, if it comes from the backend, so the delta is really just the 20ms)
very true
Great! Thanks!
I am building games on Godot, and already had to use use rust for a planning library, and now that I am a bit more comfortable, I may use the convex rust client to bring some backend goodies into the game.