{"id":903,"date":"2015-03-10T22:20:00","date_gmt":"2015-03-10T22:20:00","guid":{"rendered":"https:\/\/fir3netwp.gmsrrpobkbd.com\/2015\/03\/10\/http-pipelining-vs-domain-sharding\/"},"modified":"2021-07-27T15:49:31","modified_gmt":"2021-07-27T15:49:31","slug":"http-pipelining-vs-domain-sharding","status":"publish","type":"post","link":"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html","title":{"rendered":"HTTP Pipelining vs Domain Sharding"},"content":{"rendered":"

The other day I was reading about the benefits and new features within HTTP 2.0<\/a>. One of the key features to HTTP2.0 is the ability to interleave (i.e multiplex) multiple requests and responses across a single TCP connection. Resulting in Domain Sharding being considered counterproductive. However, based on how Domain Sharding and HTTP Pipelining can issue parallel HTTP requests, this raises an interesting question,<\/p>\n

Why use Domain Sharding over HTTP Pipeling ?<\/strong><\/p>\n

HTTP Pipeling<\/h2>\n

Ok, first a little history. Within HTTP versions prior to HTTP 1.1 each request was sent over a separate TCP connection. HTTP 1.1 then introduced a feature called “Keep-Alive”. This allowed for multiple requests to be sent over a single connection. However only a single request could be sent at once. When the request had been served i.e the response fully received the next request could be sent. This is also known as head-of-line-blocking. <\/p>\n

HTTP Pipeling was introduced and allowed the client to send multiple requests within a single TCP connection in parallel.
However, Pipelining was still prone to head-of-line-blocking as each response had to be completed before the next response could be sent. Below is an example,<\/p>\n

Consider the following,<\/p>\n

    \n
  1. Client sends 2 requests to the server in parallel for index.php and html.txt. index.php is received first.<\/li>\n
  2. Both requests are processed. php:60ms and txt:20ms.<\/li>\n
  3. Even though txt is processed first it is buffered until the php response is sent.<\/li>\n
  4. The txt response is sent once the php response is complete.<\/li>\n<\/ol>\n

    Because of the head-of-line blocking issues with HTTP Pipelining, along with many servers and proxies not supporting it due to problems with implementation Pipelining is typically disabled (by default) within browsers.<\/p>\n

    Domain Sharding<\/h2>\n

    Because of the limited adoption of HTTP pipelining there was still a need for further optimisation techniques within the HTTP protocol to allow for HTTP requests\/responses to be sent and received in parallel.<\/p>\n

    By default browsers open a maximum of 6 connections on a per domain basis. Domain Sharding simply means that the websites assets are spread across multiple domains. In turn maximising the amount of concurrent connections opened by the browser, allowing for a greater number of parallel downloads via HTTP.<\/p>\n

    However Domain Sharding does come with its own disadvantages. Such as the additional overhead\/latency introduced with a) building extra TCP connections and b) performing additional Domain Name lookups.<\/p>\n

    Summary<\/h2>\n

    In essence both HTTP Pipelining and Domain Sharding allow for HTTP requests to be sent in parallel. But this is where the similarities end. With head-of-line-blocking and the limited adoption of HTTP Pipelining, Domain Sharding is the preferred choice when choosing between these 2 HTTP optimization ‘techniques’. <\/p>\n

    References<\/h2>\n

    HTTP 2 FAQ – http:\/\/http2.github.io\/faq\/<\/a>
    Oreilly HTTP Optimization – 
    http:\/\/chimera.labs.oreilly.com\/books\/1230000000545\/ch11.html<\/a><\/p>\n

     <\/p>\n","protected":false},"excerpt":{"rendered":"

    The other day I was reading about the benefits and new features within HTTP 2.0. One of the key features to HTTP2.0 is the ability to interleave (i.e multiplex) multiple requests and responses across a single TCP connection. Resulting in Domain Sharding being considered counterproductive. However, based on how Domain Sharding and HTTP Pipelining can … Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"yoast_head":"\nHTTP Pipelining vs Domain Sharding - Fir3net<\/title>\n<meta name=\"description\" content=\"The other day I was reading about the benefits and new features within HTTP 2.0. One of the key features to HTTP2.0 is the ability to interleave (i.e\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HTTP Pipelining vs Domain Sharding - Fir3net\" \/>\n<meta property=\"og:description\" content=\"The other day I was reading about the benefits and new features within HTTP 2.0. One of the key features to HTTP2.0 is the ability to interleave (i.e\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html\" \/>\n<meta property=\"og:site_name\" content=\"Fir3net\" \/>\n<meta property=\"article:published_time\" content=\"2015-03-10T22:20:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-27T15:49:31+00:00\" \/>\n<meta name=\"author\" content=\"Rick Donato\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rick Donato\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html\"},\"author\":{\"name\":\"Rick Donato\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037\"},\"headline\":\"HTTP Pipelining vs Domain Sharding\",\"datePublished\":\"2015-03-10T22:20:00+00:00\",\"dateModified\":\"2021-07-27T15:49:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html\"},\"wordCount\":471,\"publisher\":{\"@id\":\"https:\/\/www.fir3net.com\/#organization\"},\"articleSection\":[\"Networking Concepts\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html\",\"url\":\"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html\",\"name\":\"HTTP Pipelining vs Domain Sharding - Fir3net\",\"isPartOf\":{\"@id\":\"https:\/\/www.fir3net.com\/#website\"},\"datePublished\":\"2015-03-10T22:20:00+00:00\",\"dateModified\":\"2021-07-27T15:49:31+00:00\",\"description\":\"The other day I was reading about the benefits and new features within HTTP 2.0. One of the key features to HTTP2.0 is the ability to interleave (i.e\",\"breadcrumb\":{\"@id\":\"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.fir3net.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Networking\",\"item\":\"https:\/\/www.fir3net.com\/networking\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Networking Concepts\",\"item\":\"https:\/\/www.fir3net.com\/networking\/concepts-networking\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"HTTP Pipelining vs Domain Sharding\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.fir3net.com\/#website\",\"url\":\"https:\/\/www.fir3net.com\/\",\"name\":\"Fir3net\",\"description\":\"Keeping you in the know\",\"publisher\":{\"@id\":\"https:\/\/www.fir3net.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.fir3net.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.fir3net.com\/#organization\",\"name\":\"Fir3net\",\"url\":\"https:\/\/www.fir3net.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png\",\"contentUrl\":\"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png\",\"width\":390,\"height\":88,\"caption\":\"Fir3net\"},\"image\":{\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037\",\"name\":\"Rick Donato\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g\",\"caption\":\"Rick Donato\"},\"description\":\"Rick Donato is a Network Automation Architect\/Evangelist and the founder of Packet Coders.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HTTP Pipelining vs Domain Sharding - Fir3net","description":"The other day I was reading about the benefits and new features within HTTP 2.0. One of the key features to HTTP2.0 is the ability to interleave (i.e","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html","og_locale":"en_US","og_type":"article","og_title":"HTTP Pipelining vs Domain Sharding - Fir3net","og_description":"The other day I was reading about the benefits and new features within HTTP 2.0. One of the key features to HTTP2.0 is the ability to interleave (i.e","og_url":"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html","og_site_name":"Fir3net","article_published_time":"2015-03-10T22:20:00+00:00","article_modified_time":"2021-07-27T15:49:31+00:00","author":"Rick Donato","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rick Donato","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html#article","isPartOf":{"@id":"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html"},"author":{"name":"Rick Donato","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037"},"headline":"HTTP Pipelining vs Domain Sharding","datePublished":"2015-03-10T22:20:00+00:00","dateModified":"2021-07-27T15:49:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html"},"wordCount":471,"publisher":{"@id":"https:\/\/www.fir3net.com\/#organization"},"articleSection":["Networking Concepts"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html","url":"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html","name":"HTTP Pipelining vs Domain Sharding - Fir3net","isPartOf":{"@id":"https:\/\/www.fir3net.com\/#website"},"datePublished":"2015-03-10T22:20:00+00:00","dateModified":"2021-07-27T15:49:31+00:00","description":"The other day I was reading about the benefits and new features within HTTP 2.0. One of the key features to HTTP2.0 is the ability to interleave (i.e","breadcrumb":{"@id":"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.fir3net.com\/Networking\/Protocols\/http-pipelining-vs-domain-sharding.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fir3net.com\/"},{"@type":"ListItem","position":2,"name":"Networking","item":"https:\/\/www.fir3net.com\/networking"},{"@type":"ListItem","position":3,"name":"Networking Concepts","item":"https:\/\/www.fir3net.com\/networking\/concepts-networking"},{"@type":"ListItem","position":4,"name":"HTTP Pipelining vs Domain Sharding"}]},{"@type":"WebSite","@id":"https:\/\/www.fir3net.com\/#website","url":"https:\/\/www.fir3net.com\/","name":"Fir3net","description":"Keeping you in the know","publisher":{"@id":"https:\/\/www.fir3net.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fir3net.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.fir3net.com\/#organization","name":"Fir3net","url":"https:\/\/www.fir3net.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png","contentUrl":"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png","width":390,"height":88,"caption":"Fir3net"},"image":{"@id":"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037","name":"Rick Donato","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g","caption":"Rick Donato"},"description":"Rick Donato is a Network Automation Architect\/Evangelist and the founder of Packet Coders."}]}},"_links":{"self":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts\/903"}],"collection":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/comments?post=903"}],"version-history":[{"count":0,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts\/903\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/media?parent=903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/categories?post=903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/tags?post=903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}