Skip to content

Poll and cache account balances #2248

@piyalbasu

Description

@piyalbasu

In order to prevent fetching /account-balances every single time we load the Account view, we can cache the value so we don't need to make this blocking call on every page load. To get data updates we can do the following:

  • in the background of Account, poll /account-balances for updates
  • opportunistically fetch /account-balances when we suspect a change has occurred (after completing send/swap, adding an asset)

Open questions:

  • How should we animate in deltas to account balance updates
  • How often should we poll? Do we need to be concerned with rate limiting or overloading the BE?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions