Skip to content

Commit 2d60c93

Browse files
committed
minor wording change
1 parent 67fa6d5 commit 2d60c93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-functions/manage-connections.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Chances of exceeding the limit increase when the [scale controller adds function
2727

2828
## Use static clients
2929

30-
You can avoid hitting the connection limit by reusing client instances rather than creating new ones with each function invocation. .NET clients like the `HttpClient`, `DocumentClient`, and Azure Storage clients can manage connections if you use a single, static client. Creating new instances of those clients with each function invocation is an [improper instantiation antipattern](https://docs.microsoft.com/en-us/azure/architecture/antipatterns/improper-instantiation/).
30+
To avoid holding more connections than necessary, reuse client instances rather than creating new ones with each function invocation. .NET clients like the `HttpClient`, `DocumentClient`, and Azure Storage clients can manage connections if you use a single, static client. Creating new instances of those clients with each function invocation is an [improper instantiation antipattern](https://docs.microsoft.com/azure/architecture/antipatterns/improper-instantiation/).
3131

3232
As a general rule, when using a service-specific client in an Azure Functions application:
3333

@@ -50,7 +50,7 @@ public static async Task Run(string input)
5050
}
5151
```
5252

53-
A common question about the .NET `HttpClient` is "Should I be disposing my client?" In general, you dispose objects that implement `IDisposable` when you're done using them. But when a function ends, you aren't done using your static client. You want the static client to live for the duration of your application.
53+
A common question about the .NET `HttpClient` is "Should I be disposing my client?" In general, you dispose objects that implement `IDisposable` when you're done using them. But you don't dispose a static client because you aren't done using it when the function ends. You want the static client to live for the duration of your application.
5454

5555
## DocumentClient code example
5656

0 commit comments

Comments
 (0)