Code Maze Author

Michal Kaminski

Michal is a seasoned .NET backend developer with over 10 years of expertise in this field. He has also demonstrated proficiency in cloud technologies, having spent over 8 years working with AWS to develop and maintain robust systems. Currently, Michal is deeply involved in the development of a highly-available and scalable e-commerce system.
Also find me here:

MY ARTICLES:

Implementing the Saga Pattern Using Rebus and RabbitMQ

In this article, we provide a technical guide on implementing the Saga Pattern using Rebus and RabbitMQ in a .NET environment. Rebus is a .NET library designed to create distributed applications with messaging capabilities, simplifying the process of sending and...

switch vs if-else Performance in C#: Which Is Faster?

A switch is faster than an if-else chain in C# only once it has enough cases for the compiler to build a jump table. With one or two cases, neither form wins consistently. From five cases on the same integer, the switch does less work, though our timings were too...

Select vs SelectMany in C# LINQ: The Difference

Select() transforms each element into one new element. SelectMany() transforms each element into a sequence of elements, then concatenates those sequences into one flat result. That difference shows up in the count. Ten departments through Select() give us ten...

ConcurrentQueue in C#: Thread-Safe FIFO Queue

ConcurrentQueue<T> is a first-in-first-out collection that any number of threads can add to and take from at the same time, without a single lock in our code. It lives in System.Collections.Concurrent, it exposes three methods that matter (Enqueue(),...