How it works
1
Write a run to the index
Add The response includes a
?sync=true to a normal RPC call. StackOne runs the action against the provider and stores the result.datasync block with synced_at, sync_expires_at, and a params_hash.2
Read synced data back
Call
/actions/rpc/synced with the same action and params. StackOne returns the stored records without touching the provider.Sync metadata
Thedatasync block tells you the state of the stored data:
When to use it
- The same provider data is read repeatedly and tolerates being slightly stale.
- You want predictable read latency that doesn’t depend on the provider.
sync.
Reference
Make an RPC call
The
sync=true write parameter.Read synced data
The
/actions/rpc/synced read endpoint.