An Absolute Beginner’s Tutorial for Understanding and Implementing Composite Pattern in C#

The aim of this article is to understand the basics of the Composite pattern and try to see when it can be useful. We will also look at a toy application using composite pattern to get better understanding of the pattern. The example code in this article will be mainly for the illustration of this pattern and will be a not-so-real world example. The idea of this this article is to illustrate the concept of composite pattern only. Continue reading

Understanding Retry Pattern with Exponential back-off and Circuit Breaker Pattern

In this article we will discuss the importance of retry pattern and how to implement it effectively in our applications. We will also discuss how exponential backoff and circuit breaker pattern can be used along with retry pattern. This is more of a theoretical article since the actual implementation of retry will depend a lot on the application needs. Continue reading

An Absolute Beginner’s Tutorial for Understanding and Implementing Strategy Pattern in C#

The aim of this article is to understand the basics of the Strategy pattern and try to see when it can be useful and have a rudimentary implementation for better understanding. This is no way to implement the strategy pattern in real world applications and the example taken is also far from real. The idea of this this article is to illustrate the concept of strategy pattern only. Continue reading