Asp.net framework MVC 5 deployment considerations on Azure PAAS Web App Service

%3CLINGO-SUB%20id%3D%22lingo-sub-1994248%22%20slang%3D%22en-US%22%3EAsp.net%20framework%20MVC%205%20deployment%20considerations%20on%20Azure%20PAAS%20Web%20App%20Service%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1994248%22%20slang%3D%22en-US%22%3E%3CP%3EDear%20All%2C%20We%20have%20our%20Asp.net%20MVC%205%20Application%20running%20on%20OnPrem.%20Planning%20it%20move%20to%20PAAS%20Cloud.%20While%20doing%20this%20we%20have%20couple%20of%20questions%201.%20Share%20us%20the%20checklist%20which%20can%20opt%20for%20the%20MVC%20application%20deployment.%20we%20have%20web%20api%20service%20as%20well%3F%202.%20We%20are%20using%20TempData%2C%20ViewData%20for%20sharing%20the%20information%20between%20action%20methods%2Fviews.%20For%20this%20can%20we%20go%20for%20Azure%20Redis%20out%20proc%20session%20state%20to%20handle%20these%20TempData%20and%20ViewData%20objects.%3F%20Note%3A%20We%20are%20not%20using%20actual%20session%2C%20only%20viewbag%2C%20tempdata%20used%20and%20we%20are%20not%20using%20.net%20core%20as%20well%20And%20I%20will%20explain%20the%202nd%20question%20in%20another%20way%2C%20when%20we%20use%20.net%20framework%20web%20forms%2C%20we%20used%20redis%20cache%20as%20session%20state%20for%20the%20PAAS%20deployment.%20Like%20this%20MVC%20needs%20Redis%20cache%20explicitly%20to%20store%20TempData%20and%20View%20Data%20variables%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Dear All, We have our Asp.net MVC 5 Application running on OnPrem. Planning it move to PAAS Cloud. While doing this we have couple of questions 1. Share us the checklist which can opt for the MVC application deployment. we have web api service as well? 2. We are using TempData, ViewData for sharing the information between action methods/views. For this can we go for Azure Redis out proc session state to handle these TempData and ViewData objects.? Note: We are not using actual session, only viewbag, tempdata used and we are not using .net core as well And I will explain the 2nd question in another way, when we use .net framework web forms, we used redis cache as session state for the PAAS deployment. Like this MVC needs Redis cache explicitly to store TempData and View Data variables?

1 Reply

@ultimatesenthil

Hi, there is no checklist as such. If you have a MVC5 application - that means you are on .NET Full Framework. So when you want to deploy to Azure PaaS - you will need to select a Windows Workload. Your application being MVC has got nothing to do with anything special in Azure. Having said that - if you are using Session based storage heavily - well thats not particularly good when you move to Cloud. You move to cloud to get scalability and elasticity. So relying on session will not help you when you scale. So if your app uses SESSION data - move it to a centralized storage like SQL Server or REDIS. Thats the change you will need to make. ViewData, TempData are not SESSION storage. So you are good.

 

regards
Lohith
Technology Lead