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: public void Configure(IApplicationBuilder app, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) { loggerFactory.AddLog4Net(); } But this is .net core console application, where I’m creating LoggerFactory on my own, so it would not work. In […]

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 […]

Microsoft Orleans – is it fast?

Microsoft Orleans is a developer-friendly framework for building distributed, high-scale computing applications. It does not require from developer to implement concurrency and data storage model. It requires developer to use predefined code blocks and enforces application to be build in a certain way. As a result Microsoft Orleans empowers developer with a framework with an […]

Managing ServiceBus queues, topics and subscriptions in .Net Core

From version 3.1 of Microsoft.Azure.ServiceBus it is finally possible to manage queues, topics and subscriptions in .Net Core. Let’s have a look at how we can use it in real life scenarios. Previously we would use sample code for getting a queue: public IQueueClient GetQueueClient(string _serviceBusConnectionString, string _queueName) { var queueClient = new QueueClient(_serviceBusConnectionString, _queueName); return […]

Generic export of csv files

Once in a while, you get a task, that you need to generate an export file to the 3rd party system. It is popular when communicating with price comparer services, search services, adds services etc. So you need to generate csv file with almost the same data, but in a slightly different format. How to […]

The urge for refactoring

Recently in my team at work, we focus on maintaining older micro-services. While this might not be the most exciting job to do, it is an opportunity to work on a developer craftsmanship. A micro-service or any code that you write, can be old after a year or even a half, cause our developer habits […]