Azure-docs: Question on the Azure Search .Net SDK latency

Created on 17 Apr 2018  ·  3Comments  ·  Source: MicrosoftDocs/azure-docs

Hi,
It is probably a stupid question but I wonder if using Azure Search with the .Net SDK is not going to create an extra latency as we channel requests from the client to the web app controller which in turn will call the azure search engine, whereas the most straightforward will be to call the azure search instance directly from Javascript. Is that a correct reasoning?

Thanks

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

cxp in-progress product-question searcsvc triaged

All 3 comments

@Ponant Thanks for the feedback! We are currently investigating and will update you shortly.

@Ponant Yes, there will be more latency if you have a web app between your client and your search service. However, we still recommend this architecture in most cases because otherwise you could be putting api-keys at risk by exposing them to the client. What we recommend is that you call your search service directly from JavaScript running in the browser only if you're fine with your data being publicly disclosed and your browser-based client uses a query api-key (definitely not an admin api-key).

@brjohnstmsft Thank you for the reply.

@Ponant We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and tag me in your reply. We will gladly continue the discussion.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jharbieh picture jharbieh  ·  3Comments

bityob picture bityob  ·  3Comments

paulmarshall picture paulmarshall  ·  3Comments

ishepherd picture ishepherd  ·  3Comments

varma31 picture varma31  ·  3Comments