question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CosmosDBBindings ConnectionPolicy Settings

See original GitHub issue

I’d like to add the Connection Policy Setting for the CosmosDB Bindings.

In our app, frequently configure these policies.

ConnectionPolicy: PreferredLocations
ConnectionPolicy: ConnectionMode
ConnectionPolicy: ConnectionProtocol

These parameter is included in the best practices of CosmosDB. I guess a lot of people might want to configure that.

I suggest to make it configureble the Connection Policy via host.json.

If no one try to do it, I’d happy to contribute it.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
ealsurcommented, Jun 26, 2018

@TsuyoshiUshio Protocol and Connection mode have been merged into Functions V1 and V2, just as a FYI.

1reaction
TsuyoshiUshiocommented, Jun 2, 2018

@ealsur Thanks! Very quick! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

ConnectionPolicy Class (Microsoft.Azure.Documents.Client)
Represents the connection policy associated with a DocumentClient to connect to the Azure Cosmos DB service.
Read more >
ConnectionPolicy Class - Cosmos DB
Represents the Connection policy associated with a DocumentClient in the Azure Cosmos DB database ... Setting the property value to true has no...
Read more >
Default Connection Policy of DocumentClient in Cosmos DB
If I use above code, what Connection Policy will be used? I think the performance tips article already has made it clear.
Read more >
Uses of Class com.azure.data.cosmos.ConnectionPolicy
Sets whether to allow for reads to go to multiple regions configured on an account of Azure Cosmos DB service. ConnectionPolicy, ConnectionPolicy.
Read more >
ConnectionPolicy (Azure SDK for Java Reference ...
Sets the retry policy options associated with the DocumentClient instance. Properties in the RetryOptions class allow application to customize the built-in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found