Using WebListener or OWIN as API Gateway for azure service fabric

后端 未结 1 1695
难免孤独
难免孤独 2021-01-24 00:03

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 e

1条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-24 00:38

    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.

    0 讨论(0)
提交回复
热议问题