{"id":556,"date":"2017-07-11T14:34:00","date_gmt":"2017-07-11T09:04:00","guid":{"rendered":"https:\/\/www.coimbatorewebhosting.com\/blog\/?p=556"},"modified":"2021-03-12T17:12:51","modified_gmt":"2021-03-12T11:42:51","slug":"how-the-websites-manage-several-no-of-hits-visitors-in-a-day","status":"publish","type":"post","link":"https:\/\/coimbatorewebhosting.com\/blog\/how-the-websites-manage-several-no-of-hits-visitors-in-a-day\/","title":{"rendered":"How the websites manage several no of Hits (visitors) in a day?"},"content":{"rendered":"<p>Before we going to see the above topic we have to know about Hits in website.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/how-the-websites-manage-several-no-of-hits-visitors-in-a-day\/#What_is_a_HIT\" >What is a HIT?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/how-the-websites-manage-several-no-of-hits-visitors-in-a-day\/#web_server\" >web server:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/how-the-websites-manage-several-no-of-hits-visitors-in-a-day\/#How_to_manage_or_handle_the_above_problemload_balancing\" >How to manage or handle the above problem(load balancing)?<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"What_is_a_HIT\"><\/span>What is a HIT?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>A hit is nothing but it s a request for one file from a web <a href=\"https:\/\/www.squarebrothers.com\/\" rel=\"nofollow noopener\" target=\"_blank\">server<\/a>. The file may be ant type text, or image, or video etc..<\/p>\n<p>If you request a single web page (visit) which contains only text means the web server will send the page as a file this process is called HIT.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-557\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2017\/07\/clientserver-01.gif\" alt=\"\" width=\"400\" height=\"145\" \/><\/p>\n<p>In the internet world the hits were a reasonable way of tracking how many pages were viewed.<\/p>\n<p>Each page was consider as one file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-558 size-full\" src=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2017\/07\/clientserver-02.gif\" alt=\"Hits\" width=\"400\" height=\"145\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"web_server\"><\/span>web server:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>In most cases web server are a single machine( hardware unit) that can handle large no of visitors in a day.<\/p>\n<p>Here let as take a small website that contains large no of static pages(stationary page contains text ,images and videos).and every one seems to see or visit the same page a time.<\/p>\n<p>If the machine is consider our normal computer (Intel core processor,with window 2008 or Linux operating system that loads Apache web server and connect the machine to the internet through a good connection) the web server can handle hundreds or thousands of daily visitors.<\/p>\n<p>The Above website or web server can work properly at normal operating conditions .Unlike if the following are not occur,<\/p>\n<ul>\n<li>Need to handle millions of visitors per day.<\/li>\n<li>If the existing <a href=\"https:\/\/coimbatorewebhosting.com\/blog\/how-to-choose-the-raid-configuration-for-web-server\/\" title=\"machine\" alt=\"machine\">machine<\/a> failed due to hardware problems, the site will be down till a new machine is configured and installed.<\/li>\n<li>And the visiting page is too large or complicated.<\/li>\n<li>Any back end process have to be performed at the time of visiting the page.<\/li>\n<\/ul>\n<p>In most cases all large websites are meet all of these conditions and they need large infrastructures.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_to_manage_or_handle_the_above_problemload_balancing\"><\/span>How to manage or handle the above problem(load balancing)?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>There are three main strategies for handling this type of problems,<\/p>\n<ol>\n<li>The website have to invest in a single huge machine with lot of processing power, memory, disk space and redundancy.<\/li>\n<li>The website have to distribute the <a href=\"https:\/\/coimbatorewebhosting.com\/blog\/firewall-rules-commands-iptables\/\" title=\"load\" alt=\"load\">load<\/a> across a number of machines.<\/li>\n<li>The website can use some combination of the first two options.<\/li>\n<\/ol>\n<p>Say for example if we visit a site that has a different URL each time we visit, such as www1.xxxxx.com,www2.xxxxx.com, www3xxxxx.com etc. then you know that the website is using alternative second access to the Web. This means that the website has a number of separate machines, where each of them is running a web publishing software for pages on them.<\/p>\n<p>The incoming requests for pages across all of the machines are spread in two ways:<\/p>\n<ul>\n<li>The DNS site can distribute the load. A Domain name server is an Internet service that translates domain name to IP addresses. Each time a request is made to the web server, DNS will rotate through the available IP addresses in a circular to distribute and share the load. Each of the servers has a common access to the pages of the same website.<\/li>\n<li>Some switches(Load balancing) can also distribute the load. All requests for the Web site are made to a machine and then passes the request to one of the available servers. The switch can find out from the servers which one is least loaded.<\/li>\n<\/ul>\n<p>The main advantage of this method is that there is redundancy and if some of the machines break or fall, the other will continue to work to keep the web accessible.<\/p>\n<p>That is the failure of any one machine does not cause a problem, the other <a href=\"https:\/\/coimbatorewebhosting.com\/blog\/change-windows-10-dns-servers\/\" title=\"machines\" alt=\"machines\">machines<\/a> pick up the load.<\/p>\n<p>It is also easy to add capacity in an incremental way. The disadvantage is that these machines will still have to talk to some sort of centralized database if there is any transaction processing going on.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before we going to see the above topic we have to know about Hits in website. What is a HIT? A hit is nothing but it s a request for one file from a web server. The file may be ant type text, or image, or video etc.. If you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":559,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[17],"tags":[28,29,27,30],"class_list":["post-556","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general","tag-dns","tag-hit","tag-load-balancing","tag-machine"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2017\/07\/como-usar-herramientas-webmaster-google-para-mejorar-seo-enlaces-entrantes.jpg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pa2YU7-8Y","_links":{"self":[{"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/posts\/556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/comments?post=556"}],"version-history":[{"count":0,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/posts\/556\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/media\/559"}],"wp:attachment":[{"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/media?parent=556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/categories?post=556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/tags?post=556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}