Proto.Actor based API with OpenTracing monitoring

Actor model has been around for quite some time, and modern implementations like Akka and Orleans made the model even more popular. I wanted to try out the actor model for the first time and for the exercise have chosen a light-weight and little bit less known implementation — Proto.Actor. In this blog post I will go through a naive RESTful API based on Proto.Actor and will leverage it’s Jaeger OpenTracing plugin for monitoring.

Continue reading Proto.Actor based API with OpenTracing monitoring

Blockchain in .NET Core with Microsoft SQL

In recent years blockchain became another buzzword sharing the fame with BitCoin. Blockchain solves certain technical problems, and could be implemented quite easily. In this blog post I will dive deeper into what blockchain is and how it works by going through a little technical exercise I’ve created.

Continue reading Blockchain in .NET Core with Microsoft SQL

Multipart Content-Type request results in IOException

Recently I’ve run into an ASP.NET Core MVC bug when an HTTP request with multipart content-type and empty body would cause an unhanded IOException exception to be thrown in MVC framework. However, when sending an invalid request I’d expect to receive a 400 error response code.

Continue reading Multipart Content-Type request results in IOException

No RegionEndpoint or ServiceURL configured

I was setting up Amazon SQS client locally, and received No RegionEndpoint or ServiceURL configured exception. My goal was to load all AWS config values from environment variables together with a temporary session token, however I will go trough config file option as well. Apparently region value was not picked up by the Amazon SQS client.

Continue reading No RegionEndpoint or ServiceURL configured

Custom Authentication in ASP.NET Core 2.1

This blog post shows a quick example of implementing custom authentication in .NET Core 2.1 to secure your Web API. And in most cases you do want to secure your Web APIs, even though they were internal (micro)services only. If you don’t have a proper Identity provider e. g. Identity Server in place, and just need a quick solution, then a simple option is to validate Authorization header against a hardcoded value.

Continue reading Custom Authentication in ASP.NET Core 2.1