This is a list of useful articles which I’ll try and update when I find them rather than immediately forgetting them after reading!
2019/12/04 – Converting integration tests to .NET Core 3.0
How to use the new generic Host object for integration testing rather than the old WebHost as well as how to implement it into a WebApplicationFactory for more streamlined testing.
A good guide on how to make Azure Functions as fast as possible, the main relevant point for me is that using blobs instead of table storage can be up to 50% faster for read operations.
2019/11/18 – Breaking Azure Functions with Too Many Connections
Some good Azure Function design advice and a reminder to use HttpClient properly.
HttpClient is intended to be instantiated once and reused throughout the life of an application. The following conditions can result in SocketException errors:
- Creating a new HttpClient instance per request.
- Server under heavy load.
Creating a new HttpClient instance per request can exhaust the available sockets.
2019/11/18 – .NET Core Dependency Injection with Options
A good introduction on how to use the Options pattern with Dependency Injection.