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

When creating an interface and/or abstract class is an overkill

This is a small tip containing my thoughts on why we should not blindly create interfaces and/or abstract class for each and every class in our application. These are more of thoughts and some people may not agree with my school of thought but the idea here is to share my opinion with others so that others can share their thoughts and I/we will get to learn from them. 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