Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reducing RPC requests #1557

Open
akreider opened this issue Nov 15, 2021 · 0 comments
Open

Reducing RPC requests #1557

akreider opened this issue Nov 15, 2021 · 0 comments

Comments

@akreider
Copy link

For long term sustainability, it is important that the number of RPC requests is limited to an amount that can be handled by a free, or relatively low cost, service. For instance, I have maxed the free Infura plan (100k requests/day) once - so I upgraded to a paid plan.

Ideally there would be so few requests that Augur (or an Augur affiliated organization) could run a proper RPC service for all users.

Now I don't really know what the RPC requests are doing - but assuming they are fetching price data and data on the user's position - here are some brainstormed ideas:

  1. Let users specify which markets they are interested in and filter the requests. Ex. I might want to only trade NFL markets.

  2. Create an oracle for the market prices and then have users querying that instead of using RPC requests.

  3. Filter requests based on what page you are viewing (maybe this is already happening?). For instance, if you are viewing a single market page - don't fetch the data for the other markets.

  4. Filter requests based on user activity. If they just left a tab open with a single market, say for 5 minutes during which they haven't opened other pages, you could limit RPC data requests to that market and the user's balances.

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

No branches or pull requests

1 participant