Sustainability and Carbon Footprint in Software Architecture, and Development

Introduction: In our increasingly digital world, the carbon footprint of software has become a critical concern. Data centers, the backbone of our digital infrastructure, consume vast amounts of energy. In 2020, data centers accounted for approximately 1% of global electricity use, equivalent to about 200-250 TWh per year. To put this in perspective, if we … Read more

Expression Trees 2: Creating a Business Rule Engine

In the previous post, I covered the basics of expression trees, including their structure and how to create them in .NET. Now, let’s dive into a real-world example: building a simple Business Rule Engine (BRE) using expression trees. This engine will apply discount rules based on certain conditions. Scenario: Discount Calculation Imagine you are working … Read more