near-api-js icon indicating copy to clipboard operation
near-api-js copied to clipboard

Failover configuration

Open volovyks opened this issue 3 years ago • 23 comments

Closing #733

  • Added support for multiple API Keys (since we can have multiple RPC Servers)
  • Added basic failover functionality

With this design of failover, we will change (rotate) our server when needed and stick to this new server for our next calls. It will help to avoid long responses when first (or more) servers are down.

For now, server rotation is happening only on Timeout error.

Also, check this comment: https://github.com/near/near-api-js/issues/733#issuecomment-998869162

volovyks avatar Dec 23 '21 17:12 volovyks

This PR is stale because it has been open for 7 days with no activity. Remove stale label or comment or this will be closed in another 7 days.

github-actions[bot] avatar Dec 31 '21 02:12 github-actions[bot]

This PR is stale because it has been open for 7 days with no activity. Remove stale label or comment or this will be closed in another 7 days.

github-actions[bot] avatar Jan 13 '22 02:01 github-actions[bot]

Is this PR ready? This allows failover logic with config for multiple RPC providers?

TrevorJTClarke avatar Jan 14 '22 19:01 TrevorJTClarke

This PR is stale because it has been open for 7 days with no activity. Remove stale label or comment or this will be closed in another 7 days.

github-actions[bot] avatar Jan 23 '22 02:01 github-actions[bot]

Any updates?

TrevorJTClarke avatar Jan 24 '22 18:01 TrevorJTClarke

This PR is stale because it has been open for 7 days with no activity. Remove stale label or comment or this will be closed in another 7 days.

github-actions[bot] avatar Feb 01 '22 02:02 github-actions[bot]

@MaximusHaximus @vgrichina @volovyk-s Any updates here? This change is very needed for all dapps!

TrevorJTClarke avatar Feb 01 '22 15:02 TrevorJTClarke

This PR is stale because it has been open for 7 days with no activity. Remove stale label or comment or this will be closed in another 7 days.

github-actions[bot] avatar Feb 09 '22 02:02 github-actions[bot]

This PR is stale because it has been open for 7 days with no activity. Remove stale label or comment or this will be closed in another 7 days.

github-actions[bot] avatar Feb 17 '22 02:02 github-actions[bot]

Stale?

TrevorJTClarke avatar Feb 17 '22 17:02 TrevorJTClarke

I think that the github actions bot is a bit too strict.

willemneal avatar Feb 17 '22 17:02 willemneal

This PR is stale because it has been open for 7 days with no activity. Remove stale label or comment or this will be closed in another 7 days.

github-actions[bot] avatar Feb 25 '22 02:02 github-actions[bot]

This PR is stale because it has been open for 7 days with no activity. Remove stale label or comment or this will be closed in another 7 days.

github-actions[bot] avatar Mar 04 '22 02:03 github-actions[bot]

@MaximusHaximus this PR still needs review. People are demanding such functionality. If general architecture will be approved, we can continue polishing it.

volovyks avatar Mar 11 '22 11:03 volovyks

This PR is stale because it has been open for 7 days with no activity. Remove stale label or comment or this will be closed in another 7 days.

github-actions[bot] avatar Mar 19 '22 02:03 github-actions[bot]

@MaximusHaximus ptal :)

ailisp avatar Mar 21 '22 02:03 ailisp

This PR is stale because it has been open for 7 days with no activity. Remove stale label or comment or this will be closed in another 7 days.

github-actions[bot] avatar Mar 28 '22 02:03 github-actions[bot]

This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or this will be closed in another 7 days.

github-actions[bot] avatar Apr 12 '22 02:04 github-actions[bot]

This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or this will be closed in another 7 days.

github-actions[bot] avatar Apr 27 '22 03:04 github-actions[bot]

This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or this will be closed in another 7 days.

github-actions[bot] avatar May 12 '22 03:05 github-actions[bot]

we need fallback also

waynenilsen avatar Nov 15 '22 18:11 waynenilsen

Hey @frol, do you want this PR to be merged? If so, we suggest closing the existing PR and moving all the changes to a new one. It will be much easier for us to resolve the conflicts that way. What do you think?

gtsonevv avatar Dec 06 '23 12:12 gtsonevv

It will be much easier for us to resolve the conflicts that way. What do you think?

Sure, makes sense. I would keep this PR open until a new one is submitted, so we don't lose track of it.

frol avatar Dec 06 '23 22:12 frol

This functionality has been merged with #1334

vikinatora avatar Apr 10 '24 12:04 vikinatora