System DesignReported in a candidate post, Aug 2022
DFS or BFS for scraping a site with sub-categories
Filed under PubMatic
The question
For scraping an e-commerce site with sub-categories, which traversal is preferable, DFS or BFS.
No write-up yet. Related questions below have one.
Related PubMatic questions
Collected from public candidate posts and coding forums. Updated Nov 2026.