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

  • SEARCH
  • Home
  • 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 830477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:03:03+00:00 2026-05-15T04:03:03+00:00

This is a general design question about how to make a web application that

  • 0

This is a general design question about how to make a web application that will receive a large amount of uploaded data, process it, and return a result, all without the dreaded spinning beach-ball for 5 minutes or a possible HTTP timeout.

Here’s the requirements:

  • make a web form where you can upload a CSV file containing a list of URLs
  • when the user clicks “submit”, the server fetches the file, and checks each URL to see if its alive, and what the title tag of the page is.
  • the result is a downloadable CSV file containing the URL, and the result HTTP code
  • the input CSV can be very large ( > 100000 rows), so the fetch process might take 5-30 minutes.

My solution so far is to have a spinning javascript loop on the client site, which queries the server every second to determine the overall progress of the job. This seems kludgy to me, and I’m hesitant to accept this as the best solution.

I’m using perl, template toolkit, and jquery, but any solution using any web technology would be acceptable.

edit:
An example of a possible solution is in this question: How do I implement basic "Long Polling"?

  • 1 1 Answer
  • 2 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-15T04:03:03+00:00Added an answer on May 15, 2026 at 4:03 am

    You can do this with AJAX but you may get better real-time results with a COMET like implementation. I believe that COMET implementations are specifically designed to get around some timeout limitations but I haven’t used any so I can’t offer a direct guide.

    Either way my recommendation is to hand off the work to another process once it gets to the server.

    I’ve worked a number of different solutions for batch tasks of this nature and the one I like the best is to hand off the batch work to another process. In such a system the upload page hands off the work to a separate processor and returns immediately with instructions for the user to monitor the process.

    The batch processor can be implemented in a couple of ways:

    • Fork and detach the child from IO to complete the batch processing. The parent completes the web request.
    • Save the upload content to a processing queue (e.g.: file on the file system, records in a database) and have the web server notify an external processor – either a custom daemon, or an off the shelf scheduler like “at” for *nix systems.

    You can then offer the user multiple ways to monitor the process:

    • The upload confirmation page contains a synchronous live monitor of the batch process (via COMET or Flash). When complete the confirmation page can direct the user to their download.
    • Like above but the monitor is not live but instead uses periodic polling via AJAX or page meta refresh
    • A queue monitor page that shows them the status of any batch process they have running.

    The batch processor can communicate it’s status via a number of methods:

    • Update a record in the database
    • Generate a processing log
    • Use a named pipe

    There are a number of benefits to handing the code off to another process:

    • The process will continue WHEN a user accidentally stops the browser.
    • Using an external process forces you to communicate batch status in a way that allows you to detach your monitor and re-attach any time. E.g.: WHEN a user accidentally navigates away from the page before the process is complete.
    • It’s easier to implement batch throttling and postponement if you decide you need to spread out your batch processing to occur during low web traffic hours.
    • You don’t have to worry about web timeouts (either client side or server side).
    • You can restart the web server without worrying about whether you’re interrupting a batch process.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a general question about mongodb database design, but the reason for my
This is a question about Application design rather than how-to-do specific actions. I am
This is more of a general design question, but it will be implemented in
Although I'm programming in C++, this is more of a general question about design.
This is a general question about design. What's the best way to communicate between
This is a general noob question about software design, so I apologise if it
This is more of a general design question I guess... I have an Ajax
Yesterday I asked this general question about decimals and their internal precisions. Here is
This is a general question about MVC as a pattern, but in this case
This is a general question about character encoding when using MD5 libraries in various

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.