[Paper Review] BUbiNG: Massive Crawling for the Masses
BUbiNG is a high-throughput, open-source, fully distributed web crawler implemented in Java that achieves linear scalability across multiple agents by leveraging lock-free data structures and a novel workbench data structure to enforce host- and IP-level politeness. It enables crawling at over 10,000 pages per second on a single 64-core machine while respecting strict crawling policies and supporting massive-scale archival crawling with minimal configuration overhead.
Although web crawlers have been around for twenty years by now, there is virtually no freely available, opensource crawling software that guarantees high throughput, overcomes the limits of single-machine systems and at the same time scales linearly with the amount of resources available. This paper aims at filling this gap, through the description of BUbiNG, our next-generation web crawler built upon the authors' experience with UbiCrawler [Boldi et al. 2004] and on the last ten years of research on the topic. BUbiNG is an opensource Java fully distributed crawler; a single BUbiNG agent, using sizeable hardware, can crawl several thousands pages per second respecting strict politeness constraints, both host- and IP-based. Unlike existing open-source distributed crawlers that rely on batch techniques (like MapReduce), BUbiNG job distribution is based on modern high-speed protocols so to achieve very high throughput.
Motivation & Objective
- Address the lack of open-source, high-throughput, fully distributed web crawlers that scale linearly with system resources.
- Enable archival crawling with a near-strict breadth-first visit strategy to reduce sampling bias in web graph analysis.
- Ensure compliance with both host- and IP-level politeness constraints while maintaining high performance.
- Provide a highly configurable, extensible framework that supports custom filters and user-defined processing pipelines.
- Facilitate large-scale data collection for the research community by enabling orders-of-magnitude larger datasets than previous crawlers.
Proposed method
- Employ lock-free data structures to eliminate thread contention in I/O-bound fetching threads, improving scalability and throughput.
- Introduce the workbench data structure to efficiently retrieve the next URL for fetching while enforcing politeness at both host and IP levels in constant time.
- Use a virtualizer —a memory-mapped, on-disk FIFO queue— to handle URLs that exceed available main memory, enabling massive-scale crawling.
- Design the system for full distribution without central coordination, allowing agents to coordinate autonomously and scale linearly with added resources.
- Integrate with standard web protocols and the robots.txt standard to ensure compliance with web crawling best practices.
- Support dynamic configuration via reflection and user-defined filters, enabling flexible data processing pipelines.
Experimental results
Research questions
- RQ1How can a distributed web crawler be designed to achieve linear scalability across multiple agents while maintaining strict politeness constraints?
- RQ2What data structures and concurrency techniques enable high-throughput crawling in a multi-threaded, I/O-bound environment?
- RQ3Can a fully distributed, open-source crawler outperform existing open-source crawlers in terms of throughput and configurability?
- RQ4How can a breadth-first visit strategy be preserved at the host level in a distributed system without central coordination?
- RQ5To what extent can high parallelism expose latent bugs in widely used I/O and parsing libraries?
Key findings
- BUbiNG achieves over 10,000 pages per second on a single 64-core, 64 GB workstation, processing more than 160 MB/s of data.
- The system scales linearly with the number of agents, enabling high-throughput crawling without central coordination.
- The workbench data structure enables constant-time retrieval of the next URL respecting both host- and IP-level politeness constraints.
- The use of lock-free data structures significantly reduces thread contention, improving performance under high parallelism.
- High parallelism in BUbiNG exposed and helped diagnose critical bugs in widely used libraries such as Apache HTTP client and Jericho HTML parser.
- BUbiNG successfully crawled datasets of unprecedented scale, enabling new large-scale web graph studies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.