Categories
Articles

Event Sourcing and CQRS

Event Sourcing Event sourcing is an architectural design pattern that uses an append-only store to record the actions taken on the data. Let me start with the context and the problem. Most of the applications apply the typical approach which maintains the state of the data by using CRUD operations. i.e, reads data from store, […]

Categories
Articles

Creating smaller and more secure docker images for .NET 8.0

In this article, I will explain how we can write better and more secure docker images. The docker images will be smaller and contain fewer dependencies. This is a default docker file for creating a docker image: Pro tip: call the docker init command to generate all the needed docker files for your project. This […]

Categories
Articles

ImageSharp Cheatsheet

👉 View code on GitHub

Categories
Articles Technology

Minimal Web APIs with .NET 6

.NET is a great technology to create robust APIs. Until .NET Core 3, the main approach based on Microsoft documentations was to create a web API with Controllers. In .NET 6 Microsoft adopted an innovative approach like Express.js approach. The name of this, Minimal Web API. But first things first… What is Minimal API Minimal […]

Categories
Articles Technology

.NET Conf 2022 (.NET 7) Cheatsheet

See the highlights of .NET Conf 2022. Learn what you can do with .NET 7 and in general .NET environment this year! .NET 7 Performance .NET 7 vs .NET 6 vs .NET 5 performance .NET 7 vs Node.js vs Java Servlet requests per second performance ASP.NET Core is eleven times faster than Node.js .NET 7 […]

Categories
Articles Technology

Using .NET for Microservices Architecture

Introduction In the modern digital landscape, it is crucial to have software applications that are scalable, modular, and independent. This is where microservices architecture comes in. Microservices are individual services that communicate with each other through APIs, providing independent, scalable, and resilient software applications. In this article, we will explore how to use .NET for […]

Categories
Articles Technology

.NET 6.0 console app – Configuration, tricks and tips

[source] One of the biggest .NET benefits is the flexibility and the portability of its features.As ASP.NET Core relies on the IHostBuilder, we can do the same with a classic console application.This approach will help us to have a basic infrastructure in our application, including the support for logging, dependency injection, app settings and so on. […]

Categories
Articles

How to deploy .NET apps to Docker to Kubernetes

1. Install docker on Ubuntu source 1 2. Install Kubernetes on ubuntu Follow these steps. Important: before the command “sudo apt install kubeadm kubelet kubectl” run again “sudo apt-get update” Nick Chapsas: How to deploy .NET apps to Kubernetes Other sources: How to Host .NET Core Applications in VPS Using Docker: Link Run Docker Containers […]