High performance web sites by Steve Souders
Author:Steve Souders
Language: eng
Format: mobi, epub
Tags: Reference:Computers, Active server pages, Web sites, Web site development
ISBN: 9787564108410
Publisher: 东南大学出版社
Published: 2008-01-15T08:42:08.001000+00:00
Reducing DNS Lookups
When the client's DNS cache is empty (for both the browser and the operating system), the number of DNS lookups is equal to the number of unique hostnames in the web page. This includes the hostnames used in the page's URL, images, script files, stylesheets, Flash objects, etc. Reducing the number of unique hostnames reduces the number of DNS lookups. Google (http://www.google.com) is the preeminent example of this, with only one DNS lookup necessary for the page.
Reducing the number of unique hostnames has the potential to reduce the amount of parallel downloading that takes place in the page. Avoiding DNS lookups cuts response times, but reducing parallel downloads may increase response times. As described in Chapter 8 in the section "Parallel Downloads," some amount of parallelization is good, even if it increases the number of hostnames. In the case of Google.com, there are only two components in the page. Because components are downloaded two per hostname in parallel, using one hostname minimizes the number of possible DNS lookups while maximizing parallel downloads.
Most pages today have a dozen or more components—not nearly as lean as Google. My guideline is to split these components across at least two but no more than four hostnames. This results in a good compromise between reducing DNS lookups and allowing a high degree of parallel downloads.
The advantage of using Keep-Alive, described in Chapter 2, is that it reuses an existing connection, thereby improving response times by avoiding TCP/IP overhead. As described here, making sure your servers support Keep-Alive also reduces DNS lookups, especially for Firefox users.
Reduce DNS lookups by using Keep-Alive and fewer domains.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(12585)
Hello! Python by Anthony Briggs(9921)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9799)
The Mikado Method by Ola Ellnestam Daniel Brolund(9782)
Dependency Injection in .NET by Mark Seemann(9345)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8305)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7768)
Grails in Action by Glen Smith Peter Ledbrook(7700)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7563)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(7128)
Microservices with Go by Alexander Shuiskov(6890)
Practical Design Patterns for Java Developers by Miroslav Wengner(6805)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6749)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6421)
Angular Projects - Third Edition by Aristeidis Bampakos(6160)
The Art of Crafting User Stories by The Art of Crafting User Stories(5688)
NetSuite for Consultants - Second Edition by Peter Ries(5616)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5427)
Kotlin in Action by Dmitry Jemerov(5070)
