Server response time degradation for "POST AjaxService/GetHomepageData" requests

Aryaa Kotian 85 Reputation points
2025-01-16T10:24:17.9933333+00:00

User's image

User's image

Upon checking the Detection, we see that this is a NEW detection made by Smart detection (Application insight), but upon checking the query used for Degradation in Server response time for "POST AjaxService/GetHomepageData" we have noticed it is a common spike that occurs on a random period and again drops back down to an average of 251 ms.

These were some possibilities:- 

  1. Database queries involved in this operation may be slower
  2. High CPU utilization and Insufficient memory could slow down request processing
  3. High traffic on POST AjaxService/GetHomepageData 
  4. Recent Updates in code handling POST AjaxService/GetHomepageData

We have checked the CPU, Memory, DTU for the app service and DB but everything looks fine. 

Not able to understand what exactly is the issue for Server response time.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,968 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bhargavi Naragani 6,055 Reputation points Microsoft External Staff Moderator
    2025-01-27T09:41:37.81+00:00

    Hi @Aryaa Kotian,
    Welcome to the Microsoft Q&A Platform!
    It seems like you're seeing random spikes in the response time for requests to 'POST AjaxService/GetHomepageData', these spikes are likely caused by temporary factors like increased traffic, slow responses from external services, temporary resource bottlenecks, variations in how the code handles different requests, or issues with caching.

    1. Look at the logs using Application Insights or a similar tool to see what happens with requests to "POST AjaxService/GetHomepageData." Focus on times when there are spikes to find any slowdowns.
    2. See how well any outside services or database queries are working when handling requests. Turn on tracking in Application Insights to find out if any queries or API calls are slow.
    3. Run tests to simulate high traffic and find out where things might slow down. Also, check if larger or more complex requests are causing delays.
    4. Review the code for this endpoint to find any areas that can be made faster. Use tools to identify slow parts of the code. Also, check for any database queries that could be improved, especially if they lack proper indexing.
    5. Add caching for data that people request often. This can help speed up responses for repeat requests.
    6. Create alerts in Application Insights to monitor response times for "POST AjaxService/GetHomepageData." This way, you can catch any issues early.
    7. Investigate if problems like thread pool overload or frequent garbage collection are causing delays. These issues can be temporary and might not show up in regular performance checks.

    Troubleshoot performance issues:
    https://learn.microsoft.com/en-us/azure/app-service/troubleshoot-performance-degradation
    Application insights overview:
    https://learn.microsoft.com/en-us/azure/azure-monitor/app/app-insights-overview

    Hope the above provided information help in better understanding and help you resolve the issue, if you have any further concerns or queries, please feel free to reach out to us.
    If the answer is helpful, please click "Accept Answer" and kindly upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.