Using WebListener or OWIN as API Gateway for azure service fabric

醉酒当歌 提交于 2019-12-02 13:31:36

问题


We have 4 stateless services microservice in service fabrics which are using Kestrel as server. We need to expose those 4 services to the front end and have question regarding either to use WebListener or OWIN as server. Can any one tell which is better for performance. And also we have authentication service which is used to handle tokens.


回答1:


By OWIN I'm assuming you're referring to Katana with Web API 2, which both implement OWIN.

In that case, the choice is really between "classic" Web API 2 with Katana and the newer ASP.NET Core with WebListener. I always recommend ASP.NET Core with WebListener for a few reasons:

  • We have official integration NuGet packages for ASP.NET Core in Service Fabric
  • These packages and their use cases are documented
  • Katana was largely a prototype for what would become ASP.NET Core. Most, if not all, new feature work is going into ASP.NET Core, not Katana, and ASP.NET Core is officially supported by Microsoft.


来源:https://stackoverflow.com/questions/43478809/using-weblistener-or-owin-as-api-gateway-for-azure-service-fabric

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!