Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3806342
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:49:14+00:00 2026-05-19T14:49:14+00:00

I have a page that has 5 sections. Each section takes about 1 second

  • 0

I have a page that has 5 sections.
Each section takes about 1 second to render.

Page_Load()
{
   RenderSection1();  //1 sec
   RenderSection2();  //1 sec
   RenderSection3();  //1 sec
   RenderSection4();  //1 sec                  
   RenderSection5();  //1 sec
}

I would like to speed up the loading of this page. But at the same time make sure that it don’t slow down performance of other parts of web application and also do not crash the IIS.

The are several approaches:

  1. Use AJAX requests. Needs to be MVC style requests to Controller or Web Service.
    Using UpdatePanel around each section will not work – since if I try to submit refreshes to multiple UpdatePanels at the same time using approach here:
    http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/,
    the last request will always win:
    http://www.codeproject.com/Tips/57035/Simultanious-Async-Requests-Using-Multiple-Update-.aspx

  2. Use ASP.NET threads described in answer to
    right way to create thread in ASP.NET web application. So I would use a separate thread for each call:
    RenderSection1, RenderSection2, etc…

  3. Move the logic that takes up time, usually DB requests, into Application Service class in another DLL or External Web Service. Something like

OrderDTO GetDataForViewOrder(int orderID)
{
}

and use multiple threads in that DLL. This approach seems to provide the best scalability, but also introduces UI details into Application Services layer.

Which approach do you think is the best and why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T14:49:15+00:00Added an answer on May 19, 2026 at 2:49 pm

    While threads can help with a single page loads (provided that your server has at least 5 CPU cores) it is not scalable approach. What if 3 users hit the app at the same time? Then you will need 15 cores on the server to achieve the performance boost.

    AJAX can be a solution but it suffers from the same scalability issues because each AJAX request will get its own thread. On the bright side AJAX gives a preceived speed improvements for the end user because he can see something is loading even if the laggy parts of the page take the same time.

    Wha you really need to look at if the performance hit comes from a database is asynchronous DB queries. You can start 5 asynchronous calls for the 5 parts of the page and reduce the load time potentially up to 5 times. It will make the code more complex though. Also if you are chosing to combine this with the AJAX approach you need to look at asynchronous ASP.NET pages or asynchronous WCF services to avoid scalability problems when there are a lot of users because every user will take up 5 threads.

    The code for async calls would roughly look like this:

    
    Page_Load()  
    {
         BeginDBRequest1();
         BeginDBRequest2();
         BeginDBRequest3();
         BeginDBRequest4();
         BeginDBRequest5();
         data1 = EndDBRequest1();
         data2 = EndDBRequest2();
         data3 = EndDBRequest3();
         data4 = EndDBRequest4();
         data5 = EndDBRequest5();
    
         //all of the above calls take the time of the max time call and not the sum of the times
    
         RenderSection1(data1);  //1 sec
         RenderSection2(data2);  //1 sec
         RenderSection3(data3);  //1 sec
         RenderSection4(data4);  //1 sec
         RenderSection5(data5);  //1 sec  
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page that has an iframe From one of the pages within
I have a Page that has a single instance of a UserControl that itself
In a web application, I have a page that contains a DIV that has
We have a page that ordinarily has two elements arranged side-by-side. Despite exploring a
I have a login page that has several textboxes on the page, one of
On my C# asp.net webform I have a search page that has roughly 20
I have an XHTML strict page that has an invisible div that is controlled
I have a page base class that has no .aspx file and so I
If I have a control on a page that has its Datasource set to
I have a page with a Google Maps mashup that has pushpins that are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.