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 7012479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:15:40+00:00 2026-05-27T22:15:40+00:00

I am trying to program a web-crawler, but now I am wondering: What’s the

  • 0

I am trying to program a web-crawler, but now I am wondering: What’s the best method to store all the urls, so that crawlers can work together but do not interfere?

Example:

  • Crawler 1 finds a page with 100 URLs
  • Crawler 2 finds a page without any URLs
  • Crawler 1 and 2 shall share the 100 URLs Crawler 1 has found

My ideas (two different approaches)

  1. Let the Crawler scan the page for new URLs
    • save all found URLs in a Queue (PriorityQueue) shared by all instances of Crawler
    • outsource the URLs to a database as soon as the Queue becomes too large (e.g. 80% of the maximum size)
  2. Let the Crawler save HTML and an Analyzer search for URLs later
    • save new URLs to a horizontally scaled database
    • always ask this database for the next URL

Problems

  1. Is the shared Queue a bottle neck?
  2. How can I prevent multiple crawlers from getting the same URL twice if database is only eventually consistent?

Other solutions?

Are there any other solution? What is the standard solution for web crawlers?

  • 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-27T22:15:41+00:00Added an answer on May 27, 2026 at 10:15 pm

    You have more than one question there, but how about this for one general approach.

    See this SO discussion regarding determination if two URLs are equivalent.

    Then, you really have a lot of options. My personal favorite would be to write 3 things.

    1) A database application that only handles the list of URL’s waiting to be visited.
    2) A database application that stores important results from visited sites. Whatever you want to save.
    3) An application that can query and post to (1) and then post to (2)

    Why this way?
    You can place (1) and (2) on a single machine. (3) can run from anywhere, allowing you to run multiple instances from multiple IP addresses. This will help you navigate service providers and other Network folks, who may be perturbed by your repeated and frequent http requests.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

trying to run this program. I think that to setup all of the web
i'm trying to create a bridge program in twisted.web that receives data from a
I am trying to build a program that will get all the system keyEvents
I'm trying to publish my program so that it can get updates and am
I am trying to make a program that can convert a series of manga
I'm trying to deploy my web app to Azure using this method , but
I'm trying to create a C# program using a Sharepoint Web Service reference that
I'm trying to program web site which can log in into yahoo account and
I'm trying to implement a custom live chat program on the web, but I'm
I'm trying to write a simple curl program to retrieve the web page in

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.