-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Cache bypass in dedicated gateway request options #35865
Conversation
API change check APIView has identified API level changes in this PR and created following API reviews. |
…to users/balalakshmin/cachebypass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be use primitive boolean?
Also, blocking on testing of this PR, once tested, then we can go ahead with the merge.
...osmos/azure-cosmos/src/main/java/com/azure/cosmos/models/DedicatedGatewayRequestOptions.java
Outdated
Show resolved
Hide resolved
...osmos/azure-cosmos/src/main/java/com/azure/cosmos/models/DedicatedGatewayRequestOptions.java
Outdated
Show resolved
Hide resolved
/azp run java - cosmos - tests |
Pull request contains merge conflicts. |
…zure/azure-sdk-for-java into users/balalakshmin/cachebypass
…to users/balalakshmin/cachebypass
requestOptions.setPartitionKey(new PartitionKey(DOCUMENT_ID)); | ||
ResourceResponse<Document> response = client.readDocument(documentLink, requestOptions).block(); | ||
if (cacheBypass) { | ||
String responseHeader = response.getResponseHeaders().get("x-ms-cosmos-cache-bypass"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Synced up offline with @balalakshmin. x-ms-cosmos-cache-bypass
response from the service / gateway denotes whether the request hit the cache or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks for the change.
/azp run java - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
…to users/balalakshmin/cachebypass
/azp run java - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/check-enforcer override |
Description
This is to add a new DedicatedGatewayRequestOption "BypassIntegratedCache".
For customers to have more control over integrated cache, we're introducing a new "RequestOption" called "BypassIntegratedCache". This option will allow the customer to decide whether to use integrated cache for each request or not. If this value is set to true, the item/query will be served from backend and won't be cached in Dedicated Gateway.
All SDK Contribution checklist:
Testing Guidelines