Motivation for OWIN

5

These days I read about OWIN on the MSDN website but I still can not find a good motivation for it. What I read is that OWIN is a way to decouple the application from the server so we can change the server if needed without affecting the application.

So far so good, but I can not see it as a very strong motivation. For example, in all the projects I've worked on and including what I'm working on now, I can not see any reason to change IIS. It is also said in MSDN that OWIN is a way to optimize applications for the cloud, but I can not see how this relates to decoupling application and server and how OWIN allows this.

So, what's the real need for OWIN anyway? Why does it optimize applications for the cloud?

    
asked by anonymous 28.04.2014 / 22:10

1 answer

3

This technology allows, for example, to override the need for IIS to serve websites or webservices. The motivation is flexibility, which in case of replacing IIS can mean more performance.

Imagine a small system, exist for the sole purpose of listening to any port and provide some services using a REST interface ... type, on the same local machine, you want to do a service to find files on the machine. There you have two alternatives: listen to the requests in hand, and implement a request response pipeline, using Socket, or else implement a webservice that uses IIS ... now there is a third option, which is to implement the OWIN interface, which is simpler than doing everything at hand, and does not require a bulldozer (IIS) just to load a few pebbles.

Reference:

When should I use OWIN Katana?

    
28.04.2014 / 22:38