You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
In the JS SDK and I presume and other official Cosmos SDK implementations a cache of available regions is used to pick a URL to write to based on a list of preferred regions provided to the client. Without this I can easily set a region URL manually but without something like the endpoint manager the region might not be available when I make my next request.
From what I can ascertain the JS SDK refreshes the endpoint list every 5 minutes by default.
The region URLs are stored in the Database Account resource which doesn't appear to be exposed at this moment in this SDK.
The text was updated successfully, but these errors were encountered:
After the aforementioned issue we will have the necessary info to implement a global endpoint manager.
I do not like the "automagic" refresh behind the scenes, it might work for JS/C# but in Rust I prefer to have more control. I probably will only allow to move between endpoints at user request. This means that the endpoint refresh and selection will be up to the caller (the latter being the case in JS/C# anyway).
In the JS SDK and I presume and other official Cosmos SDK implementations a cache of available regions is used to pick a URL to write to based on a list of preferred regions provided to the client. Without this I can easily set a region URL manually but without something like the endpoint manager the region might not be available when I make my next request.
From what I can ascertain the JS SDK refreshes the endpoint list every 5 minutes by default.
The region URLs are stored in the Database Account resource which doesn't appear to be exposed at this moment in this SDK.
The text was updated successfully, but these errors were encountered: