IntroductionWith the emerging popularity of OWIN , it is important for ASP.NET developers to understand in details OWIN and Katana . ASP.NET Web API and ASP.NET Identity are already forwarded towards using these specifications. This article explains what OWIN and Katana are and how they suit the whole web development picture for ASP.NET developers.
The .NET framework came into existence in 2002. ASP.NET was packaged as a part of the overall .NET framework. The idea was to provide a unified development framework for creating desktop and web applications and services. In those days Windows development tools such as VB6 were very common . Naturally, ASP.NET and Visual Studio attempted to provide a RAD (Rapid Application Development) development environment to web developers.
Web pages were seen as Web Forms backed by a rich server side Page framework. ASP.NET also provided plenty of Server Controls to develop rich user interface elements quickly.
Although the Web Forms framework served well for many years, it has its own disadvantages. As the Web Forms framework was a part of the overall .NET framework, this coupling required that the ASP.NET and the .NET framework be released together. It was difficult for Web Forms framework to keep momentum with the dynamic and rapidly changing web development trends and requirements.
All the Web Forms applications make use of System.Web : the core assembly providing ASP.NET functionality.
Over the years the way web applications are created and used has changed. Modern web applications are standards based, lightweight, flexible and greatly rely on features such as Ajax for communicating with the server. Considering the above disadvantages it is difficult for the Web Forms framework to specifically meet the requirements of modern web development. Hence Microsoft introduced OWIN and Katana into the world of ASP.NET .
OWIN
OWIN is a specification that says how web development frameworks such as ASP.NET MVC must interact with the web servers. The goal of OWIN is to decouple web applications from the web server by establishing an abstraction layer. Such an abstraction enables you to run the same application on all the web servers that support OWIN. Moreover it simplifies the overall system because that layer can provide a lightweight infrastructure to provide the applications.
IIS provides a rich set of features to the web applications. But web applications might not need all these features. It might be sufficient for them to have minimal HTTP processing capabilities. OWIN friendly host can give such a hosting environment to these applications.
Moreover, you can define a series of modules that are used during the processing of request . An OWIN pipeline is a chain of OWIN compatible components through which a request passes.
For more regarding the OWIN specification visit the owin.org website.
Katana
Katana is a whole set of components by Microsoft built using OWIN specifications. Some of these components are Web API, ASP.NET Identity and SignalR.
Overall architecture of a Katana based application
APPLICATION ——> Your application
MIDDLEWARE——-> Web API, Authentication, SignalR, etc
SERVER—————–>Listen to requests; serve the content
Host———————–> Process management; environment