brave-intl / bat-client

An example of client code for the BAT.
Mozilla Public License 2.0
7 stars 9 forks source link

client should always poll balance from balance server #38

Open evq opened 6 years ago

evq commented 6 years ago

currently there is a branch that fetches from the ledger server if payment is overdue. since this is a fairly common case (wallets with zero balance) the ledger server is getting hit much more than it should

mrose17 commented 6 years ago

in a call with uphold earlier today, they indicated that webhook support will be deployed to the sandbox next week. when that happens, i think we can re-visit this issue for a really good fix!

evq commented 6 years ago

that's great news!

we should still have the client poll the balance server though right? seems like we should have the balance server use the webhook to automatically update / create a cached value, but still set a TTL / fail over to poll through just in case there is a temporary issue with the hook.