Perfect console application in .net Core: add unit tests

Unit test are crucial part in software development process. In late 1990s Kent Beck stated that writing tests is the most important part of writing software in ExtremeProgramming metodology. You can read a bit more about it in Martins Fowler article. This is a part of a series of articles about writing a perfect console… Continue reading Perfect console application in .net Core: add unit tests

Perfect console application in .net Core: set up dependency injection

It may seem that when creating a console application we are doomed to use statics all over the code. Well.. we’re not! I’ll show you how to set up dependency injection and use it. This is a part of a series of articles about writing a perfect console application in .net core 2. Feel free… Continue reading Perfect console application in .net Core: set up dependency injection

Why duplication isn’t always a bad thing in micro-services

From an early development age, I was taught, that duplication is a bad thing. Especially when it comes to storing data. Relational databases were invented to show data that relates to each other and be able to store them efficiently. There are even a few normalization rules, to be able to avoid data redundancy. We… Continue reading Why duplication isn’t always a bad thing in micro-services

Receive Service Bus messages in Service Fabric

This is one of the proof of concent that I did at work. The idea was to add another Service Bus application to an existing solution, instead of starting a whole new micro-service. It was a lot faster just to add another .net core console application, but setting up Service Fabric cluster always brings some unexpected… Continue reading Receive Service Bus messages in Service Fabric

Adding a log4Net provider in .net core console app

I recently was developing a console application in .net core, where I had to use log4net logging. In the standard asp.net core approach we can use:

But that is asp.net core and I don’t want to reference that in my console app. In order to solve it, I had to implement my own Log4NetProvider,… Continue reading Adding a log4Net provider in .net core console app

Service Fabric Reliable Actors – is it faster then a regular micro-service approach?

Recently I’m diving into Microsoft actor model implementation – Service Fabric Reliable Actors. Apart from Microsoft Orleans, is another one worth looking into. Let’s start from the beginning. What is Service Fabric? It is many things and can be compared to Kubernetes: Simplify microservices development and application lifecycle management Reliably scale and orchestrate containers and… Continue reading Service Fabric Reliable Actors – is it faster then a regular micro-service approach?