How http client factory works in isolated Azure functions between executions?

Vyacheslav Orlov 20 Reputation points
2024-12-07T11:04:05.34+00:00

Wondering how http client factory is shared between isolated function executions. Is http client factory shared between function executions with isolated model?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Developer technologies C#
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2024-12-07T18:21:01.84+00:00

    isolated means your app is hosted in a dedicated process. As the HttpClient factory is a static, the static will be used for the life of the process. The point of azure functions is that hosting process are spun up and released depending on load. Unless the second request is reusing the http stream (http keepalive just a couple seconds) a second request is not likely to be to the same process.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.