How Google Search Works
You type a few words, and a search engine shows matching pages in a moment. To do that, it must first find and read the pages of the web. This page follows the article's design of the web crawler, the program that visits and saves pages,Source 1সোর্স 1 and uses Google's own guides to explain the index that answers your query.Source 2সোর্স 2 The hard part is size: the web is huge and always changing.
9 min read9 মিনিটে পড়া যায় · 9 sections9টি সেকশন · 4 sources4টি সোর্স · updated Nov 2026আপডেট: Nov 2026
Choosing the next URL to crawlপরের URL ক্রল করার বাছাই
The frontier picks by priority, then waits per host, so no site is flooded.ফ্রন্টিয়ার আগে priority দেখে বাছে, তারপর হোস্ট ধরে অপেক্ষা করে, তাই কোনো সাইটে অতিরিক্ত চাপ পড়ে না।
You’ll learnআপনি শিখবেন
- Why the front queues have prioritiesfront queue-তে কেন priority থাকে
- Why one host gets one back queueকেন একটা হোস্টের একটা back queue
- How the heap picks the next hostheap কীভাবে পরের হোস্ট বাছে
- Why many hosts keep the crawler busyকেন অনেক হোস্ট ক্রলারকে ব্যস্ত রাখে
- How HTTP 429 slows a hostHTTP 429 কীভাবে হোস্টকে ধীর করে
The problem in plain words
A search system has two parts. A web crawler visits pages and saves them in a data store. A search engine looks in that data to answer queries. Source 1সোর্স 1 The results must show the page URL, a title, and a subtitle, and they must not be out of date. Source 1সোর্স 1 The system must stay up, give correct results, grow with the web, and answer in milliseconds. Source 1সোর্স 1
The article makes rough estimates of the size, as you would in an interview:
| Item | Estimate |
|---|---|
| Active websites | 200 million Source 1সোর্স 1 |
| Pages per website | 50 on average, so 10 billion pages Source 1সোর্স 1 |
| Storage | 2 MB per page, so 20 PB Source 1সোর্স 1 |
| Searches | 8.5 billion per day, about 100,000 per second Source 1সোর্স 1 |
Google's real index is larger. It covers hundreds of billions of web pages and is more than 100,000,000 GB in size. Source 3সোর্স 3
The article describes one way to build a crawler, as for a system design interview. It is not the exact system that Google runs. The article itself says that Google has changed a lot over time and that one post cannot show all the details. Source 1সোর্স 1 The free part of the article covers the crawler. The index and the query part come from Google's own documents.
সহজ English
A search system has two parts. A web crawler visits pages and saves them in a data store. A search engine looks in that data to answer queries. Source 1সোর্স 1 Each result must show the page URL, a title, and a subtitle. The results must not be out of date. Source 1সোর্স 1 The system must stay up, give correct results, grow with the web, and answer in milliseconds. Source 1সোর্স 1
The article makes rough size estimates, as you do in an interview: 200 million active websites, 50 pages per website on average (so 10 billion pages), 2 MB per page (so 20 PB of storage), and 8.5 billion searches per day (about 100,000 per second). Source 1সোর্স 1 Google's real index is larger. It covers hundreds of billions of web pages and is more than 100,000,000 GB in size. Source 3সোর্স 3
The article shows one way to build a crawler, as for a system design interview. It is not the exact system that Google runs. Source 1সোর্স 1 The free part of the article covers the crawler. The index and the query part come from Google's own documents.
বাংলা ব্যাখ্যা
একটি search system-এর দুটি অংশ আছে। Web crawler page-গুলো visit করে এবং একটি data store-এ save করে। Search engine সেই data-তে খুঁজে query-র উত্তর দেয়। Source 1সোর্স 1 প্রতিটি result-এ page URL, একটি title, আর একটি subtitle থাকতে হবে, এবং result পুরোনো হওয়া চলবে না। Source 1সোর্স 1 System-টিকে সবসময় চালু থাকতে হবে, সঠিক result দিতে হবে, web-এর সাথে বড় হতে হবে, এবং millisecond-এর মধ্যে উত্তর দিতে হবে। Source 1সোর্স 1
Interview-এর মতো করে article-টি size-এর একটি মোটামুটি হিসাব করে: 200 million active website, প্রতি website-এ গড়ে 50টি page (তাই মোট 10 billion page), প্রতি page-এ 2 MB (তাই মোট 20 PB storage), এবং দিনে 8.5 billion search (প্রতি সেকেন্ডে প্রায় 100,000)। Source 1সোর্স 1 Google-এর আসল index আরও বড়। এতে কয়েকশো billion web page আছে, আর এর size 100,000,000 GB-এর বেশি। Source 3সোর্স 3
মনে রাখুন, article-টি system design interview-এর জন্য crawler তৈরির একটি উপায় দেখায়। এটি Google-এর হুবহু system নয়। Source 1সোর্স 1 Article-এর free অংশে শুধু crawler আছে। Index আর query অংশ Google-এর নিজের document থেকে নেওয়া।
The big picture
[Seed URLs] --> [URL frontier] --> [Checks: seen before? robots.txt? DNS]
^ |
| v
[New links] <-- [Page processor] <-- [Page fetcher] --> [Content store]
|
v
[User query] --> [Search engine] --> [Index] <-------------------- [Indexer]The crawler starts with a list of known URLs. The URL frontier picks the next URL, and the checks stop repeats and forbidden pages. The fetcher downloads the page and stores it. The processor finds new links and sends them back to the frontier. Separately, the indexer reads the stored pages and builds the index that answers user queries.
সহজ English
The crawler starts with a list of known URLs. The URL frontier picks the next URL. Checks stop repeats and forbidden pages. The fetcher downloads the page and stores it in the content store. The processor finds new links in the page and sends them back to the frontier.
Separately, the indexer reads the stored pages and builds the index. A user sends a query to the search engine, and the search engine looks in this index.
বাংলা ব্যাখ্যা
Crawler কিছু জানা URL-এর একটি list দিয়ে শুরু করে। URL frontier পরের URL বাছাই করে। কিছু check একই page বারবার visit করা এবং নিষিদ্ধ page আটকে দেয়। Fetcher page-টি download করে content store-এ রাখে। Processor page-এর ভেতরে নতুন link খুঁজে পায় এবং সেগুলো আবার frontier-এ পাঠায়।
এর পাশাপাশি, আলাদাভাবে indexer store করা page-গুলো পড়ে এবং index তৈরি করে। User search engine-এ query পাঠান, আর search engine এই index-এ খোঁজে।
Finding pages: seed URLs and new links
Think of a tourist in a new city. At first, the tourist knows a few famous places. At each place, the tourist hears about new places to visit.
No single list of all websites exists. Source 1সোর্স 1 So the crawler starts with a list of well-known sites, called seed URLs. It finds new URLs as it crawls. Source 1সোর্স 1 The article names three ways to discover a new site: the owner submits it, a crawled page links to it, or a user searches for it. Source 1সোর্স 1 Google adds one more way: a site owner can send a sitemap, which is a list of the pages of the site. Source 2সোর্স 2
Google calls this step "URL discovery". Its crawler program is called Googlebot. Source 2সোর্স 2 Many pages build their content with JavaScript after they load. So a crawler may need a headless browser, which is a browser without a screen, to see the final page. Source 1সোর্স 1 Google renders pages with a recent version of Chrome for this reason. Source 2সোর্স 2
সহজ English
Think of a tourist in a new city. At first, the tourist knows a few famous places. At each place, the tourist hears about new places to visit.
No single list of all websites exists. Source 1সোর্স 1 So the crawler starts with a list of well-known sites, called seed URLs. It finds new URLs as it crawls. Source 1সোর্স 1 The article names three ways to find a new site: the owner submits it, a crawled page links to it, or a user searches for it. Source 1সোর্স 1 Google adds one more way: the site owner sends a sitemap, which is a list of the pages of the site. Source 2সোর্স 2
Google calls this step "URL discovery". Its crawler is called Googlebot. Source 2সোর্স 2 Many pages make their content with JavaScript after they load. To see the final page, a crawler may need a headless browser, which is a browser without a screen. Source 1সোর্স 1 For this reason, Google renders pages with a recent version of Chrome. Source 2সোর্স 2
বাংলা ব্যাখ্যা
একজন tourist-এর কথা ভাবুন, যিনি নতুন একটি শহরে এসেছেন। শুরুতে তিনি কয়েকটি বিখ্যাত জায়গা চেনেন। প্রতিটি জায়গায় গিয়ে তিনি নতুন জায়গার খবর পান।
সব website-এর একটি একক list কোথাও নেই। Source 1সোর্স 1 তাই crawler কিছু পরিচিত site-এর list দিয়ে শুরু করে, যেগুলোকে seed URL বলে। Crawl করতে করতে এটি নতুন URL খুঁজে পায়। Source 1সোর্স 1 Article-টি নতুন site খোঁজার তিনটি উপায় বলে: owner নিজে site-টি submit করেন, crawl করা কোনো page সেই site-এ link দেয়, অথবা কোনো user সেটি search করেন। Source 1সোর্স 1 Google আরও একটি উপায় যোগ করে: site owner একটি sitemap পাঠাতে পারেন, যা site-এর page-গুলোর একটি list। Source 2সোর্স 2
Google এই ধাপকে "URL discovery" বলে, আর এর crawler program-এর নাম Googlebot। Source 2সোর্স 2 অনেক page load হওয়ার পরে JavaScript দিয়ে content তৈরি করে। তাই final page দেখতে crawler-এর একটি headless browser লাগতে পারে, অর্থাৎ screen ছাড়া একটি browser। Source 1সোর্স 1 এই কারণে Google একটি recent version-এর Chrome দিয়ে page render করে। Source 2সোর্স 2
The URL frontier: what to visit next, and how fast
Think of a delivery company. Urgent parcels go first. But each customer can take only one delivery at a time, so the driver must wait between visits to the same address.
The URL frontier is the part that chooses the next URL to crawl. Source 1সোর্স 1 The article bases its frontier on the design of the Mercator crawler. It has two layers of queues, one for priority and one for politeness. Source 1সোর্স 1 A queue is a waiting line.
| Layer | What it does |
|---|---|
| Front queues | Each queue holds one priority level. The selector picks more often from the high-priority queues. Source 1সোর্স 1 |
| Back queues | All URLs of one host go to the same back queue, so the crawler can limit its speed for each host. Source 1সোর্স 1 |
| Heap of times | It stores the next allowed visit time of each host. The crawler takes the host with the earliest time. Source 1সোর্স 1 |
Politeness means that the crawler does not send too many requests to one site. Fixed rules are not enough. If a site gets slow or returns errors, the crawler should slow down. Source 1সোর্স 1 For example, after an HTTP 429 (too many requests) answer, it crawls slower and tries again later. After an HTTP 500 (server error) answer, it waits longer. Source 1সোর্স 1 Google's own crawlers also react to the answers of a site. For them, HTTP 500 errors mean "slow down". Source 2সোর্স 2
Many domains can share one IP address, for example on shared hosting. So the crawler sets limits for each host and also for each IP address. Source 1সোর্স 1
সহজ English
The URL frontier chooses the next URL to crawl. Source 1সোর্স 1 The article bases it on the Mercator crawler. It has two layers of queues (waiting lines): one for priority and one for politeness. Source 1সোর্স 1
- Front queues. Each queue holds one priority level. The selector picks more often from the high-priority queues. Source 1সোর্স 1
- Back queues. All URLs of one host go to the same back queue. So the crawler can limit its speed for each host. Source 1সোর্স 1
- Heap of times. It keeps the next allowed visit time of each host. The crawler takes the host with the earliest time. Source 1সোর্স 1
Politeness means that the crawler does not send too many requests to one site. If a site gets slow or returns errors, the crawler slows down. Source 1সোর্স 1 After an HTTP 429 (too many requests) answer, it crawls slower and tries again later. After an HTTP 500 (server error) answer, it waits longer. Source 1সোর্স 1 For Google's crawlers too, HTTP 500 errors mean "slow down". Source 2সোর্স 2
Many domains can share one IP address. So the crawler sets limits for each host and also for each IP address. Source 1সোর্স 1
বাংলা ব্যাখ্যা
একটি delivery company-র কথা ভাবুন। জরুরি parcel আগে যায়। কিন্তু প্রতিটি customer একবারে একটিই delivery নিতে পারেন, তাই driver-কে একই ঠিকানায় দুইবার যাওয়ার মাঝে অপেক্ষা করতে হয়।
URL frontier ঠিক করে, এরপর কোন URL crawl হবে। Source 1সোর্স 1 Article-টি Mercator crawler-এর design-এর উপর ভিত্তি করে frontier তৈরি করে। এতে queue-এর (অর্থাৎ অপেক্ষার লাইনের) দুটি layer আছে: একটি priority-র জন্য, আরেকটি politeness-এর জন্য। Source 1সোর্স 1 প্রতিটি front queue একটি priority level ধরে রাখে, আর selector high-priority queue থেকে বেশি বার বাছাই করে। একটি host-এর সব URL একই back queue-তে যায়, তাই crawler প্রতিটি host-এর জন্য speed সীমিত রাখতে পারে। একটি heap প্রতিটি host-এর পরের অনুমোদিত visit-এর সময় রাখে, আর crawler সবচেয়ে আগের সময়ের host-টি নেয়। Source 1সোর্স 1
Politeness মানে crawler একটি site-এ অতিরিক্ত request পাঠায় না। কোনো site ধীর হয়ে গেলে বা error দিলে crawler-এর গতি কমানো উচিত। Source 1সোর্স 1 HTTP 429 (too many requests) উত্তর পেলে এটি ধীরে crawl করে এবং পরে আবার চেষ্টা করে। HTTP 500 (server error) উত্তর পেলে এটি আরও বেশি সময় অপেক্ষা করে। Source 1সোর্স 1 Google-এর crawler-এর কাছেও HTTP 500 error মানে "slow down"। Source 2সোর্স 2
Shared hosting-এর মতো ক্ষেত্রে অনেক domain একটি IP address share করতে পারে। তাই crawler প্রতিটি host এবং প্রতিটি IP address-এর জন্য limit রাখে। Source 1সোর্স 1
Skipping repeats: duplicate URLs and duplicate pages
Think of a librarian with a stamp list. Before the librarian buys a book, the librarian checks the list. If the book is on the list, the librarian does not buy it again.
A crawler can go round in a loop. For example, a page links to itself, or a site makes very many new URLs on the fly. Source 1সোর্স 1 So the crawler checks each URL before it crawls it. The list of seen URLs is too large for one machine, so it is split, or sharded, across many machines. Source 1সোর্স 1
To save memory, the crawler can use a Bloom filter. This is a small data structure that answers "have I seen this?" If it says no, the answer is sure. If it says yes, the answer is only probable, so a few new URLs get skipped. Source 1সোর্স 1 For a crawler of this size, the article says that this cost is acceptable. Source 1সোর্স 1
Two different URLs can show the same content. A word-by-word comparison costs too much. So the crawler makes a fingerprint, a short summary of the page, for example with the Simhash method. Similar pages get similar fingerprints. Source 1সোর্স 1 A site owner can also mark the preferred URL of a page with a canonical link. Source 1সোর্স 1 Google groups similar pages and picks the most typical one as the canonical page. Source 2সোর্স 2
সহজ English
A crawler can go round in a loop. For example, a page links to itself, or a site makes very many new URLs on the fly. Source 1সোর্স 1 So the crawler checks each URL before it crawls it. The list of seen URLs is too large for one machine. So it is split (sharded) across many machines. Source 1সোর্স 1
To save memory, the crawler can use a Bloom filter. It is a small data structure that answers "have I seen this?" A "no" is sure. A "yes" is only probable, so a few new URLs get skipped. Source 1সোর্স 1 The article says that this cost is acceptable for a crawler of this size. Source 1সোর্স 1
Two different URLs can show the same content. A word-by-word comparison costs too much. So the crawler makes a fingerprint, a short summary of the page, for example with the Simhash method. Similar pages get similar fingerprints. Source 1সোর্স 1 A site owner can mark the preferred URL of a page with a canonical link. Source 1সোর্স 1 Google groups similar pages and picks the most typical one as the canonical page. Source 2সোর্স 2
বাংলা ব্যাখ্যা
একজন librarian-এর কথা ভাবুন, যাঁর কাছে একটি stamp list আছে। বই কেনার আগে তিনি list-টি দেখেন। বইটি list-এ থাকলে তিনি সেটি আর কেনেন না।
একটি crawler loop-এ আটকে যেতে পারে। যেমন, একটি page নিজের দিকেই link দেয়, অথবা একটি site তাৎক্ষণিকভাবে অনেক নতুন URL তৈরি করে। Source 1সোর্স 1 তাই crawl করার আগে crawler প্রতিটি URL check করে। আগে দেখা URL-এর list একটি machine-এর জন্য অনেক বড়, তাই list-টি অনেক machine-এ ভাগ (shard) করা হয়। Source 1সোর্স 1
Memory বাঁচাতে crawler একটি Bloom filter ব্যবহার করতে পারে। এটি একটি ছোট data structure, যা "এটি কি আগে দেখেছি?" প্রশ্নের উত্তর দেয়। উত্তর "না" হলে তা নিশ্চিত। উত্তর "হ্যাঁ" হলে তা শুধু সম্ভাব্য, তাই কিছু নতুন URL বাদ পড়ে যায়। Source 1সোর্স 1 Article-টি বলে, এত বড় crawler-এর জন্য এই ক্ষতি মেনে নেওয়া যায়। Source 1সোর্স 1
দুটি আলাদা URL একই content দেখাতে পারে। শব্দ ধরে ধরে তুলনা করা অনেক ব্যয়বহুল। তাই crawler page-এর একটি fingerprint, অর্থাৎ ছোট একটি সারাংশ, তৈরি করে, যেমন Simhash method দিয়ে। কাছাকাছি page-এর fingerprint-ও কাছাকাছি হয়। Source 1সোর্স 1 Site owner একটি canonical link দিয়ে page-এর পছন্দের URL চিহ্নিত করতে পারেন। Source 1সোর্স 1 Google কাছাকাছি page-গুলোকে group করে এবং সবচেয়ে typical page-টিকে canonical page হিসেবে বাছাই করে। Source 2সোর্স 2
Rules, storage, and teamwork
Before it crawls a URL, the crawler reads the site's robots.txt file. In this file, the site owner says which URLs crawlers may visit. Source 1সোর্স 1 Google says that robots.txt mainly protects a site from too many requests. It does not hide a page from search results. To keep a page out, the owner uses a noindex rule or a password. Source 4সোর্স 4
The article stores each page as it was downloaded, in an object store such as Amazon S3. Source 1সোর্স 1 The article says that an object store grows easily and keeps data safe. Source 1সোর্স 1 A separate key-value database keeps the facts about each page: the URL, where the content is, when it was last crawled, and the result. Source 1সোর্স 1 Google runs its own distributed storage system, called Colossus. It replaced the Google File System. Source 1সোর্স 1
The crawler parts must work together. The article compares three ways and picks orchestration. One central program, the orchestrator, starts each step, tracks progress, and retries failed steps. Source 1সোর্স 1 It can also schedule a new crawl of old pages. Source 1সোর্স 1
সহজ English
Before it crawls a URL, the crawler reads the robots.txt file of the site. In this file, the site owner says which URLs crawlers may visit. Source 1সোর্স 1 Google says that robots.txt mainly protects a site from too many requests. It does not hide a page from search results. To keep a page out, the owner uses a noindex rule or a password. Source 4সোর্স 4
The article keeps each page as it was downloaded, in an object store such as Amazon S3. The article says that an object store grows easily and keeps data safe. Source 1সোর্স 1 A separate key-value database keeps the facts about each page: the URL, the location of the content, the time of the last crawl, and the result. Source 1সোর্স 1 Google runs its own distributed storage system, Colossus. It replaced the Google File System. Source 1সোর্স 1
The parts of the crawler must work together. The article compares three ways and picks orchestration. One central program, the orchestrator, starts each step, tracks progress, and tries failed steps again. It can also schedule a new crawl of old pages. Source 1সোর্স 1
বাংলা ব্যাখ্যা
কোনো URL crawl করার আগে crawler সেই site-এর robots.txt file পড়ে। এই file-এ site owner বলে দেন, crawler কোন কোন URL visit করতে পারবে। Source 1সোর্স 1 Google বলে, robots.txt মূলত একটি site-কে অতিরিক্ত request থেকে রক্ষা করে। এটি search result থেকে কোনো page লুকায় না। কোনো page বাইরে রাখতে owner একটি noindex rule বা password ব্যবহার করেন। Source 4সোর্স 4
Article-এর design প্রতিটি page download করা অবস্থাতেই Amazon S3-এর মতো একটি object store-এ রাখে। Article-টি বলে, object store সহজে বড় হতে পারে এবং data নিরাপদ রাখে। Source 1সোর্স 1 একটি আলাদা key-value database প্রতিটি page-এর তথ্য রাখে: URL, content কোথায় আছে, শেষ কবে crawl হয়েছে, আর তার result। Source 1সোর্স 1 Google নিজস্ব distributed storage system চালায়, যার নাম Colossus। এটি Google File System-এর জায়গা নিয়েছে। Source 1সোর্স 1
Crawler-এর অংশগুলোকে একসাথে কাজ করতে হয়। Article-টি তিনটি উপায় তুলনা করে এবং orchestration বেছে নেয়। একটি কেন্দ্রীয় program, অর্থাৎ orchestrator, প্রতিটি ধাপ শুরু করে, progress track করে, এবং fail করা ধাপ আবার চালায়। এটি পুরোনো page-এর নতুন crawl-ও schedule করতে পারে। Source 1সোর্স 1
Indexing and serving: from pages to answers
Think of the index at the back of a book. You look up a word, and the index tells you the pages where it appears.
The free part of the article stops after the crawler. So this section uses Google's guides. Google Search works in three stages: crawling, indexing, and serving results. Source 2সোর্স 2 In the indexing stage, Google reads the text of the page and key tags such as the title element. Source 2সোর্স 2 Google compares its index to such a book index, with an entry for each word on each indexed page. Source 3সোর্স 3 The index runs on thousands of computers, and Google does not index every page it processes. Source 2সোর্স 2
When you search, Google's machines look in the index for matching pages. They return the pages that seem best and most relevant. Source 2সোর্স 2 Hundreds of factors decide relevance, such as your location, your language, and your device. So the same query can give different results in Paris and in Hong Kong. Source 2সোর্স 2 Crawlers keep running all the time, and they learn how often each page changes. Source 3সোর্স 3
সহজ English
Think of the index at the back of a book. You look up a word, and the index tells you the pages where it appears.
The free part of the article stops after the crawler, so this section uses Google's guides. Google Search has three stages: crawling, indexing, and serving results. Source 2সোর্স 2 To index a page, Google reads its text and key tags, such as the title element. Source 2সোর্স 2 Google compares its index to a book index, with an entry for each word on each indexed page. Source 3সোর্স 3 The index runs on thousands of computers. Google does not index every page that it processes. Source 2সোর্স 2
When you search, Google's machines look in the index for matching pages. They return the pages that seem best and most relevant. Source 2সোর্স 2 Hundreds of factors decide relevance, for example your location, your language, and your device. So the same query can give different results in Paris and in Hong Kong. Source 2সোর্স 2 The crawlers run all the time, and they learn how often each page changes. Source 3সোর্স 3
বাংলা ব্যাখ্যা
একটি বইয়ের শেষে থাকা index-এর কথা ভাবুন। আপনি একটি শব্দ খোঁজেন, আর index আপনাকে বলে দেয় শব্দটি কোন কোন পাতায় আছে।
Article-এর free অংশ crawler-এর পরেই শেষ হয়, তাই এই অংশে Google-এর guide ব্যবহার করা হয়েছে। Google Search তিনটি ধাপে কাজ করে: crawling, indexing, এবং result serve করা। Source 2সোর্স 2 Indexing ধাপে Google page-এর text এবং title element-এর মতো মূল tag-গুলো পড়ে। Source 2সোর্স 2 Google তার index-কে বইয়ের index-এর সাথে তুলনা করে, যেখানে প্রতিটি indexed page-এর প্রতিটি শব্দের একটি entry থাকে। Source 3সোর্স 3 Index হাজার হাজার computer-এ চলে, আর Google যে page process করে তার সবগুলো index করে না। Source 2সোর্স 2
আপনি search করলে Google-এর machine-গুলো index-এ মিলে যাওয়া page খোঁজে। তারপর সবচেয়ে ভালো এবং সবচেয়ে relevant মনে হওয়া page-গুলো ফেরত দেয়। Source 2সোর্স 2 Relevance ঠিক করে শত শত factor, যেমন আপনার location, আপনার language, এবং আপনার device। তাই একই query Paris-এ আর Hong Kong-এ আলাদা result দিতে পারে। Source 2সোর্স 2 Crawler-গুলো সবসময় চলতে থাকে, এবং প্রতিটি page কত ঘন ঘন বদলায় তা শিখে নেয়। Source 3সোর্স 3
Key words
| Word | Plain meaning |
|---|---|
| Web crawler | A program that visits web pages and saves them |
| Seed URL | A known URL that the crawl starts from |
| URL frontier | The part that chooses which URL to crawl next |
| Queue | A waiting line of jobs |
| Politeness | Rules that stop the crawler from overloading one site |
| robots.txt | A file where a site owner says what crawlers may visit |
| Bloom filter | A small memory structure that says "surely new" or "maybe seen" |
| Canonical page | The main version of a page that has copies |
| Object store | A storage service for large files, such as Amazon S3 |
| Index | A lookup table from words to the pages that contain them |
What a tester can learn
Tutorial advice
These ideas are the tutorial's own advice.
- Make a small test site with a page that links to itself and a page that makes endless URLs. Check that the crawler stops.
- Return HTTP 429 and HTTP 500 from a test server. Check that the crawler slows down and retries later.
- Put a
Disallowrule in robots.txt and check that the crawler never requests those URLs. - Serve the same content at two URLs, one with a canonical link. Check that only one copy goes to the index.
- Change a page and check how long it takes until search shows the new text.
- Measure the search answer time while the indexer works under full load.
সহজ English
These ideas are the tutorial's own advice.
- Make a small test site with a page that links to itself and a page that makes endless URLs. Make sure that the crawler stops.
- Send HTTP 429 and HTTP 500 answers from a test server. Make sure that the crawler slows down and tries again later.
- Put a
Disallowrule in robots.txt. Make sure that the crawler never requests those URLs. - Serve the same content at two URLs, one with a canonical link. Make sure that only one copy goes to the index.
- Change a page. Measure the time until search shows the new text.
- Measure the time that search takes to answer while the indexer works under full load.
বাংলা ব্যাখ্যা
এই ধারণাগুলো tutorial-এর নিজের পরামর্শ।
- একটি ছোট test site তৈরি করুন, যেখানে একটি page নিজের দিকেই link দেয় এবং আরেকটি page অসীম সংখ্যক URL তৈরি করে। Check করুন যে crawler থেমে যায়।
- একটি test server থেকে HTTP 429 এবং HTTP 500 ফেরত দিন। Check করুন যে crawler গতি কমায় এবং পরে আবার চেষ্টা করে।
- robots.txt-এ একটি
Disallowrule দিন এবং check করুন যে crawler কখনো সেই URL-গুলো request করে না। - একই content দুটি URL-এ serve করুন, যার একটিতে canonical link আছে। Check করুন যে index-এ শুধু একটি copy যায়।
- একটি page বদলান এবং দেখুন, search নতুন text দেখাতে কত সময় নেয়।
- Indexer যখন full load-এ কাজ করছে, তখন search-এর উত্তর দেওয়ার সময় মাপুন।