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

Gzip Compression with NancyFX

I was looking at the size of the payloads in my web api and thought it would be worth investigating if adding HTTP compression via gzip would be worthwhile. After a quick search, I found a post by Simon Cropp back from 2011.  This was a good starting point, however how you wired it up with Nancy current day (1.4.3) is a bit different. Compressing I’ve basically taken Simon’s code and added it to a new class that implements IApplicationStartup. There are a few checks that occur before compressing the output. Does the incoming request accept header contain gzip? Is the outgoing HTTP… Read More »Gzip Compression with NancyFX

Nancy.Linker: NancyFX URI Builder

If you are using NancyFX, likely at some point you needed to generate a URI of another route in your application. When I first ran into this problem, I was looking for some type of built-in URI builder, similar to what you would do with ASP.NET MVC’s Url.Action(). Nancy.Linker Luckily, I found Nancy.Linker by Christian Horsdal. Simple URI builder for named Nancy routes with optional pass through of query parameters. It’s really that simple.  What it allows you to do is generate URI’s based on the names given to your routes. If you are not naming your routes yet, you… Read More »Nancy.Linker: NancyFX URI Builder

ASP.NET 5 is now ASP.NET Core 1.0

Yesterday it was announced on the ASP.NET Community Standup by Damian Edwards and on Scott Hanselman’s blog that Microsoft has decided to rename ASP.NET 5 (also formerly known as ASP.NET vNext) to ASP.NET Core 1.0. Reset Major Version Number As many in the community, I view this rename prior to the RTM as a good thing.  ASP.NET 5 was a very confusing name as it is a completely new version of ASP.NET.  I welcome the reset to 1.0 as it gives a better description that this is indeed a rewrite and ground up work. Also, frameworks such as Entity Framework had also… Read More »ASP.NET 5 is now ASP.NET Core 1.0