简体   繁体   中英

Host MVC app on Azure Service Fabric

Looking into options for starting the migration of an existing application with both MVC web pages and Web Api components to Service Fabric. We have gotten the Web Api components running under ServiceFabric, but not the MVC web pages. Based on what little I have seen out there, there does not seem to be a definitive way to run an existing MVC application under service fabric. Is this correct or am I missing something? NOTE - by MVC app, I mean a web site built using MVC 6, not Web API services. Thanks in advance.

Yes you can take an MVC 6 application and run it on Service Fabric. Here is an example from the official Azure Sample gallery: https://github.com/Azure-Samples/service-fabric-dotnet-iot/tree/master/src/Iot.Tenant.WebService

If you are planning to develop new application then you can follow below link service-fabric-add-a-web-frontend

IF you have an existing application you and you don't want to change any code you can deploy your application as Guest executable. follow below link service-fabric-deploy-existing-app

If you have an existing application (MVC 5 and IIS based) and you want to deploy in Service Fabric you and host with help of container. MVC5 app does not support self-host and tightly coupled with IIS. check below link iis-based-applications-to-service-fabric-using-docker-container

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM