Answered by:
Long response times for azure deploys

Question
-
We have deployed our MVC projetc to Azure. The project is built with best pratices for db and backend developments. But we are not pleased with the response times for the project on azure deployment. While it is working as expected on local platform it works much slower on Azure. It's not like a VPS server. What are the best practises to have the best performence on azure deployments.For example we have enabled "Always On" feature on Azure. But it is still same. Sometimes page load times, ajax request response times are very long
Regards
- Edited by Kubilay1 Friday, December 29, 2017 5:16 PM
Friday, December 29, 2017 4:34 PM
Answers
-
To Increase performance of Azure App Services, you need to check the following:
- Scale up for Azure App.
- Improve performance using Azure CDN.
Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer" Mai Ali | My blog:Technical | Twitter: Mai Ali
- Proposed as answer by AjayKumar-MSFTMicrosoft employee, Owner Friday, December 29, 2017 7:10 PM
- Marked as answer by Kubilay1 Saturday, December 30, 2017 4:27 AM
Friday, December 29, 2017 7:04 PM -
In addition to Mai Ali's suggestions. The response time sluggishness may depend on various factors. You may checkout the suggestions outlined in the document Troubleshoot slow web app performance issues in Azure App Service to fetch more details on the issue.
When Azure resources composing a solution such as a web app and a database are located in different regions the effects can include the following:
- Increased latency in communication between resources
- Monetary charges for outbound data transfer cross-region as noted on the Azure pricing page.
Do let us know more details on the Database that you are using and on which region have you hosted the app.
Colocation in the same region is best for Azure resources composing a solution such as a web app and a database or storage account used to hold content or data. When creating resources, you should make sure they are in the same Azure region unless you have specific business or design reason for them not to be. You can move an App Service app to the same region as your database by leveraging the App Service cloning feature currently available for Premium App Service Plan apps.
Additionally, Azure Load Balancer has a default idle timeout setting of four minutes. This is generally a reasonable response time limit for a web request. If your web app requires background processing, we recommend using Azure WebJobs. The Azure web app can call WebJobs and be notified when background processing is finished. You can choose from multiple methods for using WebJobs, including queues and triggers.
WebJobs is designed for background processing. You can do as much background processing as you want in a WebJob. For more information about WebJobs, see Run background tasks with WebJobs.
Refer the document Web Development Best Practices (Building Real-World Cloud Apps with Azure) for some standard guidelines.
--------------------------------------------------------------------------------------------------
Do click on "Mark as Answer" on the post that helps you, this can be beneficial to other community members.
- Proposed as answer by AjayKumar-MSFTMicrosoft employee, Owner Friday, December 29, 2017 7:10 PM
- Marked as answer by Kubilay1 Saturday, December 30, 2017 4:27 AM
Friday, December 29, 2017 7:09 PMOwner
All replies
-
To Increase performance of Azure App Services, you need to check the following:
- Scale up for Azure App.
- Improve performance using Azure CDN.
Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer" Mai Ali | My blog:Technical | Twitter: Mai Ali
- Proposed as answer by AjayKumar-MSFTMicrosoft employee, Owner Friday, December 29, 2017 7:10 PM
- Marked as answer by Kubilay1 Saturday, December 30, 2017 4:27 AM
Friday, December 29, 2017 7:04 PM -
In addition to Mai Ali's suggestions. The response time sluggishness may depend on various factors. You may checkout the suggestions outlined in the document Troubleshoot slow web app performance issues in Azure App Service to fetch more details on the issue.
When Azure resources composing a solution such as a web app and a database are located in different regions the effects can include the following:
- Increased latency in communication between resources
- Monetary charges for outbound data transfer cross-region as noted on the Azure pricing page.
Do let us know more details on the Database that you are using and on which region have you hosted the app.
Colocation in the same region is best for Azure resources composing a solution such as a web app and a database or storage account used to hold content or data. When creating resources, you should make sure they are in the same Azure region unless you have specific business or design reason for them not to be. You can move an App Service app to the same region as your database by leveraging the App Service cloning feature currently available for Premium App Service Plan apps.
Additionally, Azure Load Balancer has a default idle timeout setting of four minutes. This is generally a reasonable response time limit for a web request. If your web app requires background processing, we recommend using Azure WebJobs. The Azure web app can call WebJobs and be notified when background processing is finished. You can choose from multiple methods for using WebJobs, including queues and triggers.
WebJobs is designed for background processing. You can do as much background processing as you want in a WebJob. For more information about WebJobs, see Run background tasks with WebJobs.
Refer the document Web Development Best Practices (Building Real-World Cloud Apps with Azure) for some standard guidelines.
--------------------------------------------------------------------------------------------------
Do click on "Mark as Answer" on the post that helps you, this can be beneficial to other community members.
- Proposed as answer by AjayKumar-MSFTMicrosoft employee, Owner Friday, December 29, 2017 7:10 PM
- Marked as answer by Kubilay1 Saturday, December 30, 2017 4:27 AM
Friday, December 29, 2017 7:09 PMOwner