Skip to content
This repository has been archived by the owner. It is now read-only.

Request manager #36

Open
gagarin55 opened this issue Feb 12, 2018 · 0 comments
Open

Request manager #36

gagarin55 opened this issue Feb 12, 2018 · 0 comments

Comments

@gagarin55
Copy link
Contributor

Is suggested there emeraldpay/emerald-wallet#475
The idea is:

Let's make two api functions, a standard one with direct call, and another one which will buffer requests into a batch call (JSON RPC batch operation) and execute it once 100ms, parse results and resolve original promises one by one.

-> call 1 -> [a]
-> call 2 -> [a, b]
-> call 3 -> [a, b, c]
...
100ms -> JSON RPC batch -> resolve a -> resolve b -> resolve c

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant