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
Cosmos DB supports configuring global replication of data; however, it is up to the client to specify which region to query data from by specifying preferredRegion in requests. When many language SDKs support this (Go, Java, Python, C#), the Rust SDK does not appear to support it. We will potentially need to add support there first in order to pull it into Spin
The text was updated successfully, but these errors were encountered:
Breaking this down, we essentially want to determine or enable configuring the region specific URL. For example, if your database is named foo and exists in westus and eastus, the URLs are as follows:
We should at least enable configuring the region in the runtime config and then suffix that on the URL. A more comprehensive API would query the base URL in order to get the account properties. The following is an example response from the Azure docs:
Cosmos DB supports configuring global replication of data; however, it is up to the client to specify which region to query data from by specifying
preferredRegion
in requests. When many language SDKs support this (Go, Java, Python, C#), the Rust SDK does not appear to support it. We will potentially need to add support there first in order to pull it into SpinThe text was updated successfully, but these errors were encountered: