Archives for Server Side
C# 11 Features – Auto-default Struct
Before understanding these new changes to Struct type, will do some understanding of the background of this implementation. At compile time, the compiler will attempt to take your code that initializes…
C#11 features – Required Members
A new keyword required is introduced in C# 11 where it will be decorated to the instance property and field declaration within a class/record/struct. Whenever a class is declared with a property…
C#11 features – Raw String Literals
Raw String Literals are the new format of string literals introduced since C# 11. This new format can help us in getting the output string with any arbitrary text like…
C#11 features: Newlines in string interpolations
The string Interpolation feature was introduced in C# 6 and this is a replacement for () method. In Format() we use to keep placeholders with sequence numbers and we need to…
Introducing File Scoped Types in C# 11
Since the evaluation of C#, we have seen many access modifiers introduced, and similarly, in C# 11, file-scoped type is a new access modifier mainly designed for code generator authors where…
C# code performance improvement with Span<T> Type
A new structure Span<T> was introduced since C# The main goal of it is to avoid allocating new objects on heap memory when working with the contiguous region of arbitrary memory requirements. …
Understanding Task vs ValueTask
These days most of the Interfaces we are seeing with methods have a return type as ValueTask. So, through this article, we are going to understand What is ValueTask? How…
Understanding Thread Starvation in .NET Core Applications
Most of the applications will be facing a performance issue while scaling and this might be due to thread starvation. Before getting into the thread starvation problem, we need to…
Working with Async/Await/Task keywords in depth
Modern systems are coming more powerful with multiple processors. Similarly, the modern server application development also improved to leverage the host CPU power for processing multiple requests in parallel to…
Understanding worker thread and I/O Completion Port (IOCP)
Every .NET/.NET Core application is associated with a thread pool and is a collection of threads that effectively executes asynchronous calls of an application. These threads on the thread pool…