title: ASP.NET Core middleware vs filters
body: <p>After reading about ASP.NET Core middleware, I am confused about when I should use filters and when I should use middleware as they seem to achieve the same goal.
  When should middleware be used instead of filters?</p>