Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.36k stars 2k forks source link

[QUERY] Examples of bypassing dedicated gateway #42182

Open vaibhawk-kr opened 1 month ago

vaibhawk-kr commented 1 month ago

Query/Question I am having hard time finding how to set request options to bypass dedicated gateway/integrated cache. I was hoping for options to change it in CosmosConfig used to create ReactiveCosmosTemplate or the annotations on ReactiveCosmosRepository methods to do so.

Why is this not a Bug or a feature Request? I am not sure if its a design decision to not expose that. Maybe that's a question for you

Setup (please complete the following information if applicable):

github-actions[bot] commented 1 month ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @kushagraThapar @pjohari-ms @TheovanKraay.

kushagraThapar commented 1 month ago

@vaibhawk-kr - this can be done through DedicatedGatewayRequestOptions - which are only present on per request options. However, I think there is a way to enable / disable the dedicated gateway per client. @tvaron3 can you please share any examples we have for request options extensibility?

tvaron3 commented 1 month ago

@vaibhawk-kr the description in this pr shows how to use request options extensibility which will allow you to change DedicatedGatewayRequestOptions per client. https://github.com/Azure/azure-sdk-for-java/pull/40061