csharp

.NET Aspire and Redis

February 25, 2024  -   7 mins read time -   1286 words -  garrardkitchen

.net aspire, azd, blazor, csharp, devex, dependency injection, nuget, redis

First look into .NET Aspire TL;DR: See here for why AZD is not yet supported. I decided to give .NET Aspire a try. I’m yet to watch an online tutorial but I did watch its announcement a few months ago. At the time I did think YAGNI. For me, it didn’t make much sense. Either that, or it just wasn’t being explained well enough. Enthusiasm alone isn’t enough to promote a new tool. ...

.NET Stack, Heap and Boxing

February 4, 2022  -   5 mins read time -   946 words -  garrardkitchen

csharp, .net, stack, heap, allocations, gc, boxing

This week I have been investigating how to reduce memory allocation in a few HTTP APIs. I won’t go into any explicit work-related examples here but I will touch on facets relating to this effort. Let’s start off by looking at Reference Types and Value types and how they get allocated into the Heap. I will also touch on concepts such as boxing and GC pressure. Let me start off with some facts: ...