Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Internal] CosmosClient: Add a remarks section to AllowBulkExecution #3987

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

iainx
Copy link
Contributor

@iainx iainx commented Jul 17, 2023

Description

Add a remarks section to AllowBulkExecution explaining that it is not recommended to be used with Resource Token authentication

Type of change

Documentation fix

Fixes #1783
Closes #1783

Add a remarks section to AllowBulkExecution explaining that it is not
recommended to be used with Resource Token authentication

Fixes #1783
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors|Removes) Description"

Internal should be used for PRs that have no customer impact. This flag is used to help generate the changelog to know which PRs should be included. Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.

@iainx iainx changed the title Add a remarks section to AllowBulkExecution [Internal] CosmosClient: (Fixes) Add a remarks section to AllowBulkExecution Jul 17, 2023
@iainx iainx changed the title [Internal] CosmosClient: (Fixes) Add a remarks section to AllowBulkExecution [Internal] CosmosClient: Add a remarks section to AllowBulkExecution Jul 17, 2023
@@ -557,6 +557,9 @@ public CosmosSerializer Serializer

/// <summary>
/// Allows optimistic batching of requests to service. Setting this option might impact the latency of the operations. Hence this option is recommended for non-latency sensitive scenarios only.
/// <remarks>
/// The use of Resource Tokens scoped to a Partition Key as an authentication mechanism when Bulk is enabled is not recommended as it reduces the potential throughput benefit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The use of Resource Tokens scoped to a Partition Key as an authentication mechanism is not recommended, as it reduces the potential throughput benefit. you can rephrase it something like this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But is it only not recommended when Bulk is enabled?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

403: Forbidden Response when AllowBulkExecution = true + Resource Token
5 participants