Shadow mirroring with Envoy

April 11, 2019 · envoy

An overview of implementing shadow mirroring with Envoy, to safely test a different version of a service with real production traffic without affecting the end clients. »

Graceful termination in Kubernetes with ASP.NET Core

January 6, 2019 · kubernetes asp.net-core

Using a container-orchestration technology like Kubernetes, running applications in small containers, and scaling out horizontally rather than scaling a single machine up has numerous benefits, such as flexible allocation of the raw resources among different services, being able to precisely »

How to use Envoy as a Load Balancer in Kubernetes

October 5, 2018 · envoy kubernetes

An introduction to using Envoy as a load balancer in Kubernetes, and configuring various load balancing algorithms. »

How to gracefully fall back to cache on 5xx responses with Varnish

July 28, 2018 · varnish

Varnish can gracefully fall back to cached values in case our backend is down. This post describes how we can handle 5xx errors this way. »

Automated, portable code style checking in .NET Core projects

July 8, 2018 · .net-core c# linting

A quick introduction to setting up automated code style checking for .NET Core projects with StyleCopAnalyzers and editorconfig. »

Introducing Code Fragments extension in Visual Studio Code for managing snippets during presentations

November 26, 2017 · visual studio visual studio code presenting

Recently I started working on a simple Visual Studio Code extension I'd like to introduce in this post. Occasionally I do tech presentations, in which I usually like to do some live code demos. To make this smoother, Visual Studio »

Build and publish documentation and API reference with DocFx for .NET Core projects

November 17, 2017 · .net-core appveyor docfx

This guide shows how to build and publish API documentation for a .NET Core library, using DocFx, GitHub Pages and AppVeyor. »

Secure an ASP.NET Core api with Firebase

August 22, 2017 · asp.net-core security firebase

Introduction Update: Updated the code samples according to the changes introduced in .NET 2.0. Firebase is an application development framework and infrastructure provided by Google. It offers a handful of services, like Storage, Analytics, Notifications and Hosting, mainly targeted »

Troubleshooting high memory usage with ASP.NET Core on Kubernetes

August 17, 2017 · kubernetes .net-core asp.net-core

At work we are running several ASP.NET Core APIs on the hosted version of Kubernetes in the Google Cloud (GCE—Google Container Engine). In almost all of our components we noticed that they had unreasonably high memory usage. The »

Running ASP.NET Core in auto-scaling containers? Warm up!

July 29, 2017 · asp.net-core web api kubernetes

ASP.NET Core APIs are not warmed up by default. This is easy to illustrate, let's scaffold a brand new empty api. mkdir warmuptest cd warmuptest dotnet new webapi dotnet restore dotnet run Then let's do two consecutive requests against »