Using Streams With HttpClient in .NET To Improve Performance and Memory Allocations

Опубликовано: 21 Октябрь 2024
на канале: Code Maze
1,788
79

►► Master Web API development Best Practices: https://bit.ly/3TnqoFQ
►► Build great web apps in Blazor WebAssembly: https://bit.ly/437g87T
►► Support us on Patreon and get the source code:   / codemaze  

In this video, I will show you how to optimize your application when using an HttpClient by improving performance and memory usage with streams.

So, basically, I will use streams with HttpClient while sending requests and reading the content from responses. I will use streams only with GET and POST requests because the logic from the POST request can be applied to PUT and PATCH easily.

LINKS MENTIONED IN THE VIDEO
►► HttpClient Factory:    • Use HttpClient Properly with HttpClie...  

FOLLOW US ON SOCIAL MEDIA!
►►   / marinko-spasojevic  
►►   / codemazeblog  
►►   / codemazeblog