title: difference between HTTP module and OWIN middleware
body: <p>I went through <a href="http://www.asp.net/aspnet/overview/owin-and-katana/an-overview-of-project-katana" rel="noreferrer">http://www.asp.net/aspnet/overview/owin-and-katana/an-overview-of-project-katana</a> and was wondering what is the difference between HTTP module and owin middleware. Some pointers that i can think of are </p>
  
  <p>1) Owin middleware decouples the application from host/server. So that it is no longer necessary for me to hook my application logic specifically to System.Web</p>
  
  <p>2) Owin middleware are executed in the order they are added ( not sure if the same holds true for HttpModules; may be depends on how i have added them in web.config)</p>
  
  <p>3) HttpModules helps me to attach my code specific to a application events. Owin middleware is independent of these events</p>
  
  <p>Please also let me know of practical example of using a OWIN module and not a HttpModule. </p>
  
  <p><strong>Some more links i ended up reading</strong> <em>(i'll keep on adding here as and when i encounter new)</em>
  <a href="http://www.cloudidentity.com/blog/2013/07/23/securing-a-web-api-with-windows-azure-ad-and-katana/" rel="noreferrer">http://www.cloudidentity.com/blog/2013/07/23/securing-a-web-api-with-windows-azure-ad-and-katana/</a></p>
  
  <p><strong>Update</strong> : perhaps this has the anwer i was looking for 
  <a href="http://www.asp.net/aspnet/overview/owin-and-katana/owin-middleware-in-the-iis-integrated-pipeline" rel="noreferrer">http://www.asp.net/aspnet/overview/owin-and-katana/owin-middleware-in-the-iis-integrated-pipeline</a></p>
  
  <p><a href="https://stackoverflow.com/questions/21308585/when-should-i-use-owin-katana">When should I use OWIN Katana?</a></p>
  
  <p>Thanks.</p>