Kubernetes ConfigMaps with .NET Core This tutorial will cover how to mount a Kubernetes ConfigMap into a pod and how to read that configuration in .NET. I will also demonstrate the different ways a .NET application can read configuration from an appsettings.json file. One demonstration will reload configuration on change and how to listen for those changes. That does not...
Identity Server 4 ClientCredentials with POSTMAN This tutorial will demonstrate how to set up security within microservices using Identity Server 4 with OpenID. This will use a Client and Secret for microservice to microservice (machine-to-machine) communication that way a compromised microservice can't interact with resources it's not authorized to. I will also demonstrate how to use POSTMAN to get tokens,...
.NET Kafka Producers This multipage post will specifically target the concept of getting data out of a specific system or database and on to the Kafka Event Bus. There are many ways of doing this and some are easier to implement than others. It's important to remember why Kafka is relevant in today's world; Kafka is a real-time event streaming...
Introduction to ASP.NET/.NET Core .NET is an incredibly powerful software development framework created by Microsoft and used by some of the largest enterprise environments in the world. Originally created in 2002, it was decided to supersede Active Server Pages (ASP Classic 3.0). While .NET is very versatile it is also very "corporatey" because of its tight integration within the Windows...
Local Development with Azure API Management Gateway This was rather tricky to figure out so I thought I would share my experience with setting up Visual Studio with a local development subscription of Azure API Management (APIM) Gateway. It turns out that running a local copy of the Azure API Management Gateway is possible through either Docker or Kubernetes. Since...
.NET Core: Dynamically Return Style Sheets with Web API If you have a need to dynamically return a stylesheet to the UI here's a quick tutorial on how to do it. Header Template C# Web API
.NET Core Interview Questions Q: What is .NET Core? .NET Core is a modern Microsoft framework for creating applications that can run platform agnostic. .NET core has performance gains over its predecessor technology ASP.NET where it's been shown as 2400% times faster. .NET core can handle up to 7,000,000 HTTP requests per second. .NET core is developed in C++ and C#. https://en.wikipedia.org/wiki/.NET_Core https://www.ageofascent.com/2019/02/04/asp-net-core-saturating-10gbe-at-7-million-requests-per-second/ Q:...
Repository Pattern (C#) There are some really good articles out there about the repository pattern but I haven't seen one that strongly demonstrates different data providers, sample code, or some of the tricks I've learned. I primarily build internal business applications so I've used this pattern at almost every .NET job I've ever had. It's very common and I've learned...
Mounting Volumes in Docker with Visual Studio This technique is ideal for local development within Visual Studio. You can easily mount local files into a docker container by modifying the MSBuild commands of the project. Project File's MSBuild Commands This code came from a .NET Core 3.1 project. Docker Volume Mounting The docker -v or --volume flag is used to designate a volume mount...
73 ° F