Skip to content

Sponsor: Do you build complex software systems? See how NServiceBus makes it easier to design, build, and manage software systems that use message queues to achieve loose coupling. Get started for free.

Learn more about Software Architecture & Design.
Join thousands of developers getting weekly updates to increase your understanding of software architecture and design concepts.


Follow @CodeOpinion

Derek Comartin

Roundup #1

In addition to my regular blog posting, I thought it might be worthwhile to have a post weekly on various blog posts, videos, talks, tools, whatever that I found interesting through the week.  So this is the first of hopefully many roundups. Blazor, Razor, WebAssembly, and Mono by Dave Glick Really great blog post explaining how it all works.  I was actually working on a Blazor talk for my local user group and came across Dave’s post.  Really worth a read if you want to understand the basics of how Blazor, Razor, WebAssembly and Mono all fit together. RazorPageGenerator I… Read More »Roundup #1

ASP.NET Core Data Protection

Continuing from my last post on Configuring ASP.NET Core behind a Load Balancer, the next hurdle you may run into is with ASP.NET Core Data Protection. Specifically I was using Cookie Authentication (without Identity). In this scenario, ASP.NET Core’s Data Protection must share the same key ring and app identifier for each instance of your application.  This means if you are load balanced across multiple containers or even machines, you must configure ASP.NET Core’s Data Protection system. If you do not, the process that generates your authentication cookie (or bearer token) will be the only process that will be able… Read More »ASP.NET Core Data Protection

Configuring ASP.NET Core Behind a Load Balancer

If you deploy your ASP.NET Core web application to the cloud you are likely putting it behind a load balancer.  Here’s some quick info that might provide useful for how to Configure ASP.NET Core behind a load balancer. Forwarded Headers There are generally 3 headers which are added to the request header to tell your application about how it was forwarded from the load balancer. X-Forwarded-For: List of comma space list of IP addresses of the original client and proxies that received the request. X-Forwarded-Proto: The scheme from the original client and proxies. X-Forwarded-Host: Original host header. SSL Termination If… Read More »Configuring ASP.NET Core Behind a Load Balancer