This commit is contained in:
Bryan Stitt 2022-06-25 02:45:50 +00:00
parent 7d81e012ae
commit 6e003ea3e3
2 changed files with 9 additions and 4 deletions

@ -36,9 +36,13 @@
- [ ] endpoint for health checks. if no synced servers, give a 502 error
- [ ] interval for http subscriptions should be based on block time.
- [ ] todo: include private rpcs with regular queries? i don't want to overwhelm them, but they could be good for excess load
- [ ] refactor so configs can change while running
- create the app without applying any config to it
- have a blocking future watching the config file and calling app.apply_config() on first load and on change
## V1
- [ ] stats when forks are resolved (and what chain they were on?)
- [ ] incoming rate limiting (by api key)
- [ ] failsafe. if no blocks or transactions in the last second, warn and reset the connection
- [ ] improved logging with useful instrumentation
@ -55,7 +59,8 @@
- [ ] if the fastest server has hit rate limits, we won't be able to serve any traffic until another server is synced.
- thundering herd problem if we only allow a lag of 0 blocks
- we can fix this by only `publish`ing the sorted list once a threshold of total soft limits is passed
- [ ] emit stats for successes, failures, types of requests
- [ ] emit stats for successes, retries, failures, with the types of requests, account, chain, rpc
- [ ] automated soft limit
## V2

@ -16,9 +16,9 @@ chain_id = 1
url = "https://rpc.flashbots.net"
soft_limit = 1_000
[balanced_rpcs.linkpool-light]
url = "https://main-light.eth.linkpool.io"
soft_limit = 1_000
#[balanced_rpcs.linkpool-light]
#url = "https://main-light.eth.linkpool.io"
#soft_limit = 1_000
[balanced_rpcs.blastapi]
url = "https://eth-mainnet.public.blastapi.io"