Book description
Simple and proven techniques to quickly speed up your ASP.NET website
- Speed up your ASP.NET website by identifying performance bottlenecks that hold back your site's performance and fixing them
- Tips and tricks for writing faster code and pinpointing those areas in the code that matter most, thus saving time and energy
- Drastically reduce page load times
- Configure and improve compression – the single most important way to improve your site's performance
- Written in a simple problem-solving manner – with a practical hands-on approach and just the right amount of theory you need to make sense of it all
In Detail
Do you think that only experts with a deep understanding of the inner workings of ASP.NET, SQL Server, and IIS can improve a website's performance? Think again – because this book tosses that notion out of the window. It will help you resolve every web developer's nightmare – a slow website – with angry managers looking over your shoulder, raging calls from advertisers and clients – the lot. You don't have the time or energy to gain a thorough and complete understanding of ASP.NET performance optimization – You just need your site to run faster! This book will show you how.
This hands-on book shows how to dramatically improve the performance of your ASP.NET-based website straight away, without forcing you through a lot of theoretical learning. It teaches you practical, step-by-step techniques that you can use right away to make your site faster with just the right amount of theory you need to make sense of it all.
Start reading today and you could have a faster website tomorrow.
Unlike other performance-related books, here you'll first learn how to pinpoint the bottlenecks that hold back your site's performance, so you can initially focus your time and energy on those areas of your site where you can quickly make the biggest difference. It then shows you how to fix the bottlenecks you found with lots of working code samples and practical advice, and just the right amount of theoretical detail.
The first chapter details techniques for diagnosing performance issues using Waterfall charts. Subsequent chapters then each focus on one individual aspect of your website, providing you with numerous real-life scenarios and performance-enhancing techniques for each of them. In the last chapter, you learn how to effectively load-test your environment in order to measure the change in performance of your site without having to update your production environment – whether it is a new release or simply a small change in the database.
Table of contents
-
ASP.NET Site Performance Secrets
- Table of Contents
- ASP.NET Site Performance Secrets
- Credits
- About the Author
- About the Reviewers
- Preface
- 1. High Level Diagnosis
- 2. Reducing Time to First Byte
- 3. Memory
- 4. CPU
- 5. Caching
- 6. Thread Usage
- 7. Reducing Long Wait Times
-
8. Speeding up Database Access
- Pinpointing bottlenecks
-
Fixing bottlenecks
- Missing indexes
-
Expensive queries
- Cache aggregation queries
- Keeping records short
- Considering denormalization
- Being careful with triggers
- Using table variables for small temporary result sets
- Using full-text search instead of LIKE
- Replacing cursors with set-based code
- Locking
- Execution plan reuse
- Fragmentation
- Memory
-
Disk usage
- Optimizing query processing
- Moving the logfile to a dedicated physical disk
- Reducing fragmentation of the NTFS filesystem
- Considering moving the tempdb database to its own disk
- Splitting the database data over two or more disks
- Moving heavily-used database objects to another disk
- Using the optimal RAID configuration
- CPU
- Find out more
- Summary
-
9. Reducing Time to Last Byte
- Pinpointing bottlenecks
- Fixing bottlenecks
- Additional measures
- Find out more
- Summary
-
10. Compression
- Agreeing on compression
- Configuring compression in IIS 7
- Configuring compression in IIS 6
- Updating the metabase
- Configuring compression in IIS 5
- Using compression in your development environment
- Measuring the difference compression makes
- Improving the compressibility of your pages
- Is compression the magic bullet?
- Find out more
- Summary
-
11. Optimizing Forms
- Client-side validation
- Submitting forms asynchronously
- AJAX-type grids
- Find out more
- Summary
- 12. Reducing Image Load Times
-
13. Improving JavaScript Loading
- Problem: JavaScript loading blocks page rendering
- Approach 1: Start loading after other components
- Approach 2: Loading JavaScript more quickly
- Approach 3: Loading JavaScript on demand
- Approach 4: Loading Javascript without blocking
- Improving ad loading
- Improving CSS Loading
- Find out more
- Summary
-
14. Load Testing
- Using a load test environment
- Building a load test environment
-
Hosting the website under load
-
Installing IIS on Vista or Windows 7
- Limitations
- Installation
- Opening the Firewall
- Installing Windows Server 2008
- Running Windows Server 2008 alongside Vista or Windows 7
- Installing Virtual PC 2007
- Installing Windows Server 2008
- Getting more out of Virtual PC
- Creating a shared folder
- Installing .NET 4 or .NET 3.5 Service Pack 1
- Installing and configuring IIS 7 on Windows Server 2008
- Opening the Firewall
- Installing Windows Server 2003
- ASP.NET test site
-
Installing IIS on Vista or Windows 7
- Installing a database
- Setting up a load generator
- Find out more
- Summary
- Index
Product information
- Title: ASP.NET Site Performance Secrets
- Author(s):
- Release date: October 2010
- Publisher(s): Packt Publishing
- ISBN: 9781849690683
You might also like
book
ASP.NET 4 Unleashed
The most comprehensive book on Microsoft’s new ASP.NET 4, ASP.NET 4 Unleashed covers all facets of …
book
Fast ASP.NET Websites
Fast ASP.NET Websites delivers just what it promises -- practical, hands-on guidance to create faster, more …
book
jQuery for ASP.NET Developers
This Wrox Blox teaches you how to use jQuery with your ASP.NET-based websites. jQuery greatly simplifies …
book
Microsoft® ASP.NET 4 Step by Step
Teach yourself the fundamentals of Web development with ASP.NET 4-one step at a time. With STEP …