Data structurecore
URL frontier
Also called Mercator frontier, crawl frontier.
The queues of URLs still to be fetched, with front queues for priority and back queues per host so each host is visited politely.
- Time
- O(F) amortized addO(log B) amortized next
- Space
- O(U + B + H) total
- Where
- B = the number of back queues; F = the number of front queues; H = the number of hosts served; U = the number of distinct URLs added
- Model
- Word RAM
- Properties
- not concurrentnot externalnot persistent
- Evidence
- Proof sketchCode in 1 languages
A URL frontier is the data structure of a web crawler that holds the URLs that the crawler has found but not fetched yet. It has two jobs that pull against each other. It must hand out important URLs first, and it must never contact one host again before a politeness gap has passed. The two-stage design of the Mercator crawler, described by Marc Najork and Allan Heydon, gives each job its own stage. A row of front queues, one for each priority level, decides which URLs enter the second stage first. A row of back queues, each holding the URLs of one host only, together with a priority queue of the times at which each host may be contacted again, decides when each URL leaves.
In plain words
Think of a post office that must deliver many letters, but each house will accept a letter only once in a while. The letters first go into a few bins by how urgent they are. A clerk takes letters from the urgent bins first and sorts them into trays, one tray for each house. A board shows the earliest time each house can take its next letter. Each delivery person takes the tray whose time comes up first, delivers one letter, and writes a later time on the board for that house. So urgent letters get into trays first, and no house gets letters too often. If a house must wait, letters for other houses, even less urgent ones, go out in the meantime. The office also keeps a list of every letter it has seen, so it never handles the same one twice.
The abstract type
A URL frontier holds a set of URLs, each with a priority in , where 1 is the highest. Every URL has a host , and every host has a gap . The operations are:
- ADD: insert with priority , unless was added before. Return whether it was inserted.
- NEXT: remove a URL and return it with a start time , or report that the frontier is empty.
The contract has three parts. NEXT returns each added URL exactly once, if it is called until it reports empty. If NEXT returns URLs and then of the same host with start times and , then . URLs of the same priority leave the front stage in the order in which they came in, and with a strict selector a URL of priority leaves the front stage only when no URL of a higher priority waits there. The order of the returned URLs is not the priority order: politeness can hold back an urgent URL while URLs of other hosts go first.
Representation
The frontier has these parts:
- Front queues , FIFO. ADD puts a URL of priority at the tail of .
- Back queues , FIFO. A back queue that is not empty holds URLs of exactly one host, its owner.
- A map from hosts to their back queues, so at most one back queue holds a given host.
- A min-heap, such as a binary heap, with one entry for each back queue that is not empty, where is the earliest time at which the owner of may be contacted.
- A set of free back queues, which are empty and have no heap entry.
- A map next from hosts to the earliest time of their next contact. It keeps the time after a host loses its back queue, so a host that comes back soon after still waits its full gap.
- A set Seen of all URLs ever added, in a hash table. Large crawlers keep it on disk or in a Bloom filter, which can drop a few new URLs by mistake but never admits a URL twice.
A selector picks the front queue at each move. The strict selector takes the first queue that is not empty. A biased random selector takes queue with a weight that falls with , so that low priority URLs also move.
Operations
ADD(u, p)- 1
if u ∈ Seen then return false - 2
add u to Seen; append u to F_p; return true NEXT(now)- 3
while some back queue Q_j is free and some front queue is not empty: REFILL(j, now) - 4
if the heap is empty then return EMPTY - 5
(t, j) ← EXTRACT-MIN(heap) - 6
s ← max(now, t); u ← remove the head of Q_j; h ← owner(Q_j) - 7
next(h) ← s + δ(h) - 8
if Q_j is not empty then INSERT(heap, (next(h), j)) - 9
else remove h as owner of Q_j; REFILL(j, s) - 10
return (u, s) REFILL(j, now) ▷ Q_j is empty, with no owner and no heap entry- 11
while some front queue is not empty: - 12
i ← SELECT a front queue that is not empty - 13
u ← remove the head of F_i; h ← host of u - 14
if h owns a back queue Q_k then append u to Q_k - 15
else make h the owner of Q_j; append u to Q_j; INSERT(heap, (max(now, next(h)), j)); return - 16
mark Q_j free
REFILL moves URLs until it finds a host that has no back queue, so the URLs of a host that already has a queue go to that queue. NEXT serves the back queue whose host may be contacted first. In a crawler with several threads, each thread calls NEXT, waits until the start time, fetches the page, and calls ADD on the links it finds. The priority of a new URL can come from a PageRank estimate, the depth of the URL, or the rate at which the page changes; the frontier does not care how it is computed.
Example
Take front queues, back queues, a gap of 1 time unit for every host, and the strict selector. Add a/1, a/2 and c/1 with priority 1, and b/1 and a/3 with priority 2, in the order a/1, a/2, b/1, c/1, a/3, where a, b and c are hosts. Then holds a/1, a/2, c/1 and holds b/1, a/3. One thread calls NEXT, each time with now equal to the last start time.
| call | what happens | returns |
|---|---|---|
| NEXT(0) | REFILL() takes a/1: host a gets , heap entry . REFILL() takes a/2 into , then c/1: host c gets , entry . The heap gives ; next(a) = 1, and still holds a/2, so goes back. | a/1 at 0 |
| NEXT(0) | The heap gives . is now empty, so REFILL() takes b/1 from : host b gets , entry . | c/1 at 0 |
| NEXT(0) | The heap gives . REFILL() takes a/3 into , then finds the front queues empty and marks free. | b/1 at 0 |
| NEXT(0) | The heap gives ; next(a) = 2, entry . | a/2 at 1 |
| NEXT(1) | The heap gives ; is empty and nothing is left to refill. | a/3 at 2 |
| NEXT(2) | The heap is empty. | EMPTY |
The URL b/1 has the lower priority, but it goes before a/2, because host a must wait one time unit after a/1. Host a is contacted at times 0, 1 and 2, exactly one gap apart.
Correctness
The file proofs/correctness.md proves the contract from four invariants. Each back queue is either free, with no owner and no heap entry, or not empty, with one owner and exactly one heap entry. Every URL in a back queue has the host of its owner, and each host owns at most one queue. Each URL of Seen is either waiting in exactly one queue or has been returned. For each owned queue, its heap time is at least next of its owner. ADD, REFILL and NEXT each keep these invariants.
Each URL is returned once, because Seen admits it once and it waits in one queue until NEXT removes it. When NEXT reports empty, no queue holds a URL. For politeness, when NEXT returns a URL of host at time , it removes the only heap entry of and sets next. Any later entry for is created at line L8 or L15 with a time of at least next, and line L6 never starts before the time of the entry. Line L15 reads next even for a host that had no queue, which is why the map next must keep old hosts. The order in each front queue is FIFO because line L2 appends at the tail and line L13 takes the head.
Proof: The two-stage URL frontier hands out each URL once and never breaks a host's politeness gapfull
The frontier has front queues ( has the highest priority), back queues with , a set Seen, a map owner from back queues to hosts, a map queue from hosts to back queues, a min-heap of pairs , a set Free of back queues, and a map next from hosts to times. The line numbers are those of the pseudocode on the page: ADD is L1 and L2, NEXT is L3 to L10, and REFILL is L11 to L16. All queues are FIFO. The gap of host is . Calls to NEXT receive times now that do not decrease.
Call active if it has an owner, and free if Free. A URL is waiting if it is in a front queue or a back queue.
Lemma 1 (invariants). Before and after each call of ADD and NEXT:
- Each back queue is either free, empty, with no owner and no heap entry, or active, not empty, with an owner , , and exactly one heap entry .
- Every URL in an active has the host , and queue is a one-to-one map from the owners to their queues. So a host is in at most one back queue.
- Each URL of Seen is either waiting in exactly one queue or has been returned by NEXT, and not both.
- For an active queue with owner and heap entry : if next is defined, then .
Proof. At the start all back queues are free and Seen is empty, so the claims hold. ADD changes only Seen and one front queue (lines L1 and L2): a URL that was not in Seen goes to exactly one front queue, so claim 3 holds and the other claims do not involve front queues.
Consider REFILL, called with empty, without an owner and without a heap entry. Each round of lines L12 and L13 moves the head of one front queue, with host . If owns a queue (line L14), goes to the tail of , which keeps claim 2; was active and stays so. Otherwise (line L15) gets owner , the URL and the one heap entry , whose time is at least next when next is defined; then REFILL returns. If the front queues run empty first, line L16 makes free. In each case each moved URL is in exactly one queue, and ends active or free.
Consider NEXT. Line L3 calls REFILL on free queues, which keeps the claims by the paragraph above. Line L5 removes the heap entry of an active queue, and line L6 removes the head of , which is returned at line L10, so claim 3 holds for . Line L7 sets for . If still has URLs, line L8 inserts , the one entry of , which meets claim 4 with equality. Else line L9 removes the owner, so is empty with no owner and no entry, and REFILL makes it active or free. No other heap entry changes, and next changes only for , whose only queue is by claim 2, so claim 4 holds for all other queues.
Theorem 2 (each URL once). NEXT returns each URL at most once. If NEXT returns nothing, the frontier holds no waiting URL.
Proof. The first claim is claim 3 of Lemma 1, together with the test of line L1, which stops a URL from entering twice. For the second, suppose line L4 finds the heap empty. By claim 1 no queue is active, so all back queues are free and empty. The loop of line L3 stopped, and Free is not empty, so no URL is in a front queue.
A crawl that adds the links of each fetched page and stops when NEXT returns nothing and no fetch is still running therefore fetches every URL that is reachable from the seeds. If a reachable URL were never fetched, take the first one on a link path from a seed; the page before it on the path was fetched, so the URL was added and is in Seen, and by claim 3 it is either waiting, which Theorem 2 rules out at the end, or returned.
Theorem 3 (politeness). If NEXT returns a URL of host with start time , then any URL of that NEXT returns later has a start time of at least .
Proof. When the URL with start is returned, line L5 has removed the only heap entry of the queue of , and line L7 sets . Until is served again, next does not change, because line L7 changes next only for the host it serves. A later URL of is served from a heap entry with owner that was inserted after this point, at line L8 or at line L15, so by claim 4 of Lemma 1. Line L6 gives the start time .
The map next keeps the time even after the host loses its back queue. Without it, a host whose queue empties and whose new URL arrives soon after could get a fresh queue with the time now and be contacted again too early. The test file has this case.
Theorem 4 (order of the front stage). URLs leave each front queue in the order in which they entered it. With the strict selector, a URL leaves the front stage only when all front queues of higher priority are empty.
Proof. Line L2 appends at the tail and line L13 removes the head, so each front queue is FIFO. The strict selector at line L12 takes the least with not empty.
The order in which URLs are fetched is not the priority order. A URL of a host that must wait stays in its back queue, and URLs of other hosts, perhaps of lower priority, go first. Priority decides which URLs enter the back stage first; politeness decides when they leave it.
Cost. ADD costs expected time with a hash set for Seen. Each URL moves once from the front stage to the back stage, and each move costs for the selector plus expected for the host lookup. Each REFILL inserts at most one heap entry, and each NEXT extracts one, so the heap work is for each URL moved and each call of NEXT. For a crawl with distinct URLs and calls of NEXT, the total time is expected. The space is , where is the number of hosts in the map next.
Complexity
ADD costs expected for the hash lookup and the append. Each URL later moves once from a front queue to a back queue, at a cost of for the selector and expected for the host lookup; charge this move to the ADD of the URL, which gives amortized expected. Each call of NEXT does one EXTRACT-MIN on a heap of at most entries. It can do several INSERTs, at line L8 and at line L15 of its REFILL calls (the first call of the example does three), but each entry is inserted once and extracted at most once, so apart from at most entries left in the heap, each INSERT is charged to the EXTRACT-MIN that removes it. The REFILL calls at line L3 that do not end at line L15 empty the front stage, so they are paid by the moves. NEXT thus costs amortized expected. A crawl with distinct URLs and calls of NEXT costs expected time. The space is for Seen, the queues, the heap and the map next over hosts. With a few priority levels, is a small constant. The bounds in the front matter are amortized and, because of the hash tables, expected.
Variants
- One queue per thread. The 1999 Mercator crawler of Heydon and Najork had one FIFO subqueue for each worker thread, with hosts assigned to subqueues by a hash of the host name. One thread serves each host, so a host is never contacted by two threads at once, but there is no priority and no time gap.
- Distributed frontier. A crawl over many machines gives each machine a set of hosts, often by a hash of the host or by consistent hashing. A machine that finds a URL of a host it does not own sends the URL to the owner.
- Disk-based queues. Large frontiers keep the queues on disk and only their heads and tails in memory, because the frontier can hold billions of URLs. Seen also lives on disk, often with a cache of popular URLs.
- Gap from the fetch time. Manning, Raghavan and Schuetze describe a common heuristic in which the gap after a fetch is about an order of magnitude larger than the time that the fetch took. A slow host then gets fewer requests.
- Revisits. A crawler that refetches pages puts known URLs back into the frontier with a priority from a revisit policy. Seen must then allow re-adds of URLs that are due.
- Topical priority. A focused crawler sets the priority from a classifier score of the page that links to the URL.
When to use it
Use the two-stage frontier in any crawler that fetches from many hosts at once and must respect a per-host gap. When the crawl is small or comes from one host, a single FIFO queue with a sleep between requests, which gives a breadth-first order, is enough. Manning, Raghavan and Schuetze suggest about three times as many back queues as crawler threads, so that most threads find a host that is ready.
Pitfalls
- Starvation. With the strict selector, a steady flow of high priority URLs keeps low priority URLs in the front stage forever. Use a biased random selector if every URL must be fetched in the end.
- Forgetting old hosts. If the map next is dropped when a host loses its back queue, a URL of that host that arrives a moment later gets a fresh queue with the time now, and the host is contacted too early. The test file has this case.
- Hosts versus servers. Many host names can share one IP address, and one name can map to many servers. A gap per host name can still overload one server; some crawlers key the back queues by IP address.
- Too few back queues. With fewer active hosts than threads, threads wait idle on the heap even though URLs are waiting, because all of them belong to hosts that must wait.
- URL normalization. Seen catches only exact repeats. Normalize the URLs (case of the host, default ports, fragments, relative paths) before ADD, or the same page enters many times under different names.
- robots.txt. Politeness also means that the crawler obeys the robots exclusion file of each host. Check it before ADD or before the fetch, and cache it for each host.
Implementations
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/url-frontier/. The authors are listed in prov/91KJAA.jsonl.
"""The two-stage URL frontier of Najork and Heydon (Manning, Raghavan and Schuetze, Section 20.2.3).
Front queues hold URLs by priority (index 0 is the highest). Back queues
hold URLs of one host each. A min-heap orders the nonempty back queues by
the earliest time at which their host may be contacted again. The
frontier remembers that time for every host it has served, so a host that
leaves its back queue and comes back later still gets its full gap.
"""
import heapq
import random
from collections import deque
from typing import Callable, Optional
def host_of(url: str) -> str:
"""The host part of a URL of the form scheme://host/path."""
rest = url.split("://", 1)[-1]
return rest.split("/", 1)[0]
class URLFrontier:
def __init__(self, front: int, back: int, delay: Callable[[str], float], rng: Optional[random.Random] = None, host: Callable[[str], str] = host_of) -> None:
"""front and back are the numbers of queues. delay(h) is the politeness gap of host h.
With rng None the front queue selector is strict: it always takes the
highest priority queue that is not empty. With an rng it picks a
nonempty queue i with weight front - i, which favours high priority
but serves every queue.
"""
if front < 1 or back < 1:
raise ValueError("need at least one front queue and one back queue")
self.front = [deque() for _ in range(front)]
self.back: list[deque] = [deque() for _ in range(back)]
self.owner: list[Optional[str]] = [None] * back # host of each back queue
self.queue_of: dict[str, int] = {} # host -> its back queue
self.heap: list[tuple[float, int]] = [] # (earliest fetch time, back queue)
self.free = list(range(back - 1, -1, -1)) # empty back queues, not in the heap
self.next_ok: dict[str, float] = {} # host -> earliest time of its next fetch
self.seen: set[str] = set()
self.delay, self.rng, self.host = delay, rng, host
self.waiting = 0 # URLs in the front queues
self.on_pull: Optional[Callable[[str, int], None]] = None # test hook
def add(self, url: str, priority: int) -> bool:
"""Insert a URL with a priority in 0 .. front - 1. Return False if it was seen before."""
if url in self.seen: # @line L1
return False
self.seen.add(url) # @line L2
self.front[priority].append(url)
self.waiting += 1
return True
def _select_front(self) -> int:
live = [i for i, q in enumerate(self.front) if q]
if self.rng is None:
return live[0]
weights = [len(self.front) - i for i in live]
return self.rng.choices(live, weights)[0]
def _refill(self, j: int, now: float) -> None:
"""Move URLs from the front queues to the back stage until back queue j gets a new host."""
while self.waiting: # @line L11
i = self._select_front() # @line L12
url = self.front[i].popleft() # @line L13
self.waiting -= 1
if self.on_pull:
self.on_pull(url, i)
h = self.host(url)
if h in self.queue_of: # @line L14
self.back[self.queue_of[h]].append(url)
else: # @line L15
self.owner[j] = h
self.queue_of[h] = j
self.back[j].append(url)
heapq.heappush(self.heap, (max(now, self.next_ok.get(h, now)), j))
return
self.free.append(j) # @line L16
def next_url(self, now: float) -> Optional[tuple[str, float]]:
"""Return (url, start time) with start >= now, or None if the frontier is empty."""
while self.free and self.waiting: # @line L3
self._refill(self.free.pop(), now)
if not self.heap: # @line L4
return None
t, j = heapq.heappop(self.heap) # @line L5
start = max(now, t) # @line L6
url = self.back[j].popleft()
h = self.owner[j]
assert h is not None
self.next_ok[h] = start + self.delay(h) # @line L7
if self.back[j]: # @line L8
heapq.heappush(self.heap, (self.next_ok[h], j))
else: # @line L9
del self.queue_of[h]
self.owner[j] = None
self._refill(j, start)
return url, start # @line L10
def __len__(self) -> int:
return self.waiting + sum(len(q) for q in self.back)
test_url_frontier.py 147 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/url-frontier/. The authors are listed in prov/91KJAA.jsonl.
import heapq
import random
import pytest
from url_frontier import URLFrontier, host_of
def web(rng: random.Random, hosts: int, pages: int, links: int) -> dict[str, list[str]]:
"""A random web graph: each page links to `links` random pages, half of them on its own host."""
urls = ["http://h%d.example/p%d" % (h, p) for h in range(hosts) for p in range(pages)]
graph = {}
for u in urls:
own = [v for v in urls if host_of(v) == host_of(u)]
graph[u] = [rng.choice(own) if rng.random() < 0.5 else rng.choice(urls) for _ in range(links)]
return graph
def reachable(graph: dict[str, list[str]], seeds: list[str]) -> set[str]:
seen, stack = set(seeds), list(seeds)
while stack:
for v in graph[stack.pop()]:
if v not in seen:
seen.add(v)
stack.append(v)
return seen
def crawl(graph, seeds, frontier, fetchers, rng, prio):
"""Simulate `fetchers` crawler threads. Return the list of (start, url) in the order of hand-out."""
for s in seeds:
frontier.add(s, prio[s])
now, idle, inflight, log = 0.0, fetchers, [], []
while True:
while idle:
r = frontier.next_url(now)
if r is None:
break
url, start = r
assert start >= now
idle -= 1
heapq.heappush(inflight, (start + rng.uniform(0.1, 2.0), url))
log.append((start, url))
if not inflight:
return log
finish, url = heapq.heappop(inflight)
now, idle = max(now, finish), idle + 1
for v in graph[url]:
frontier.add(v, prio[v])
def run(seed: int, front: int, back: int, fetchers: int, biased: bool):
rng = random.Random(seed)
graph = web(rng, hosts=rng.randrange(1, 9), pages=rng.randrange(1, 12), links=rng.randrange(1, 5))
prio = {u: rng.randrange(front) for u in graph}
gaps = {host_of(u): rng.uniform(0.5, 5.0) for u in graph}
seeds = rng.sample(sorted(graph), rng.randrange(1, 4))
f = URLFrontier(front, back, gaps.__getitem__, random.Random(seed + 1) if biased else None)
pulls: list[tuple[str, int]] = []
def on_pull(url: str, i: int) -> None:
# The strict selector takes the highest priority queue that is not empty.
if not biased:
assert all(not f.front[k] for k in range(i))
pulls.append((url, i))
f.on_pull = on_pull
added: list[tuple[str, int]] = []
real_add = f.add
def add(url: str, priority: int) -> bool:
ok = real_add(url, priority)
if ok:
added.append((url, priority))
return ok
f.add = add # type: ignore[method-assign]
log = crawl(graph, seeds, f, fetchers, rng, prio)
return graph, seeds, gaps, log, added, pulls, f
@pytest.mark.parametrize("biased", [False, True])
def test_simulated_crawl(biased: bool) -> None:
for seed in range(60):
rng = random.Random(1000 + seed)
front, back, fetchers = rng.randrange(1, 5), rng.randrange(1, 7), rng.randrange(1, 4)
graph, seeds, gaps, log, added, pulls, f = run(seed, front, back, fetchers, biased)
urls = [u for _, u in log]
# Every reachable URL is fetched, and each exactly once.
assert len(urls) == len(set(urls))
assert set(urls) == reachable(graph, seeds)
assert len(f) == 0
# No host is contacted twice within its politeness gap.
last: dict[str, float] = {}
for start, u in sorted(log):
h = host_of(u)
if h in last:
assert start - last[h] >= gaps[h] - 1e-9
last[h] = start
# Inside each front queue, URLs leave in the order they came in.
for i in range(front):
assert [u for u, p in pulls if p == i] == [u for u, p in added if p == i]
# A host has at most one back queue at any time, and every queue holds one host.
assert not f.queue_of and all(o is None for o in f.owner)
def test_back_queue_holds_one_host_during_crawl() -> None:
f = URLFrontier(2, 2, lambda h: 1.0)
for u, p in [("http://a/1", 0), ("http://a/2", 0), ("http://b/1", 1), ("http://c/1", 0), ("http://a/3", 1)]:
f.add(u, p)
got = []
now = 0.0
while True:
r = f.next_url(now)
if r is None:
break
for j, q in enumerate(f.back):
assert len({host_of(u) for u in q}) <= 1
if q:
assert f.queue_of[f.owner[j]] == j
got.append(r)
now = r[1]
# b/1 has a lower priority than a/2 but goes first, because host a must wait for its gap.
assert got == [("http://a/1", 0.0), ("http://c/1", 0.0), ("http://b/1", 0.0), ("http://a/2", 1.0), ("http://a/3", 2.0)]
def test_host_that_returns_keeps_its_gap() -> None:
# Host a leaves its back queue after one URL and comes back later through the front queues.
f = URLFrontier(1, 1, lambda h: 10.0)
f.add("http://a/1", 0)
assert f.next_url(0.0) == ("http://a/1", 0.0)
assert f.next_url(1.0) is None
f.add("http://a/2", 0)
assert f.next_url(2.0) == ("http://a/2", 10.0)
def test_duplicates_and_errors() -> None:
f = URLFrontier(1, 1, lambda h: 1.0)
assert f.add("http://a/1", 0)
assert not f.add("http://a/1", 0)
assert len(f) == 1
assert host_of("https://x.org/a/b") == "x.org"
with pytest.raises(ValueError):
URLFrontier(0, 1, lambda h: 1.0)
History
Heydon and Najork described the Mercator crawler of the Compaq Systems Research Center in 1999. Its frontier had one FIFO subqueue for each thread, so that each host was crawled by one thread only. In their 2001 report "High-performance web crawling", Najork and Heydon described the frontier with front queues for priority and back queues for politeness, with a heap of back queues ordered by the next allowed contact time. Manning, Raghavan and Schuetze made this design the standard textbook frontier in Chapter 20 of their 2008 book, and Olston and Najork survey it with other designs in their 2010 review of web crawling.
References
- Christopher D. Manning, Prabhakar Raghavan and Hinrich Schuetze, Introduction to Information Retrieval, Cambridge University Press, 2008, Chapter 20, Section 20.2.3 (the URL frontier with F front queues for priority, B back queues that each hold one host, the heap of back queues by earliest contact time, and the heuristics for the gap and the number of back queues)
- Marc Najork and Allan Heydon, High-performance web crawling, SRC Research Report 173, Compaq Systems Research Center, 2001; also in J. Abello, P. Pardalos and M. Resende (eds), Handbook of Massive Data Sets, Kluwer, 2002, the design of the Mercator URL frontier with front queues that set the priority and back queues that enforce politeness
- Allan Heydon and Marc Najork, Mercator: a scalable, extensible web crawler, World Wide Web 2(4), 219-229, 1999, the section on the URL frontier, with one FIFO subqueue for each worker thread and hosts assigned to subqueues by a hash
- Christopher Olston and Marc Najork, Web crawling, Foundations and Trends in Information Retrieval 4(3), 175-246, 2010, the chapter on crawl ordering and politeness, which surveys frontier designs
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 91KJAA Edit this page History Report an error Markdown