3 ms·
The Meteor framework [1] uses this to good effect to support latency compensation. You can optionally choose to include Meteor methods (ajax-style remote endpo
by alanning 11y ago
The Meteor framework [1] uses this to good effect to support latency compensation.
You can optionally choose to include Meteor methods (ajax-style remote endpoints) on the client. Then when the method is called, the client-side version is run in addition to the real, server-side one being kicked off. If the server-side returns an error, such as due to insufficient permissions, the changes made client-side are rolled back. Combined with Meteor's client-side mongo implementation and reactive UI updates, it gives impressive "perceived performance" benefits.
1. https://www.meteor.com/ https://www.meteor.com/