This repository was archived by the owner on Oct 6, 2020. It is now read-only.
This repository was archived by the owner on Oct 6, 2020. It is now read-only.
Cosmos add a GlobalEndpointManager #118
Open
Description
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.