25 Secrets for Faster ASP.NET Applications

by Jeffrey Richter, John Robbins, David Conlin, Shmuel Englard, Ryan Riley, Chris Allen, Robert Haken, Mitchel Sellers, Niall Merrigan, Chris Hurley, Raghavendra, Matt Lee, Jp Toto, Michael Williamson, Tiago Pascoal

DescriptionTable of ContentsDetailsHashtagsReport an issue

Book Description

Read the tips and tricks recommended by some of the smartest minds in the ASP.NET community.

25 tips from the ASP.NET community for boosting performance in your web applications; Learn the secrets of your fellow developers and read advice from MVPs and other experts; Covers async/await, Web API, ORMs, interactions between your code and your database, and more...

This open book is licensed strictly for personal or educational use. You can download 25 Secrets for Faster ASP.NET Applications ebook for free in PDF format (1.8 MB).

Table of Contents

Want to build scalable websites and services? Work asynchronously
 
Where are your custom performance counters?
 
RavenDB
 
Don't call AsEnumerable on a collection before using LINQ
 
Never call .Wait() or .Result on a Task
 
Throwing HttpResponseExceptions
 
Web API tracing
 
Message Handlers
 
Database access
 
When you're profiling, prefer accuracy to detail
 
Make the most of connection pooling by closing SQLConnection as soon as possible
 
OutputCache
 
Use ConfigureAwait to avoid thread hopping, especially in library code
 
Be careful of variable allocations
 
How to stress test your public facing web application using the cloud (or without it)
 
Using the keyword await doesn't make the work asynchronous
 
Don't use async/await for short methods
 
Turn off Change Tracking in Entity Framework
 
Always use compiled queries in Entity Framework
 
Diagnosing JavaScript memory leaks with Chrome Dev tools
 
Monitoring memory consumption over time
 
Use JValue in JSON.Net to parse complex JSON objects that you don't have POCO types for
 
Cache JavaScript and CSS permanently
 
Load external JavaScript content asynchronously
 
Profile, don't speculate!
 
 

Book Details

Subject
Computer Science
Publisher
Red Gate
Published
2011
Pages
38
Edition
1
Language
English
PDF Size
1.8 MB
License
For personal or educational use

Book Hashtags

Related Books

50 Ways to Avoid Find and Fix ASP.NET Performance Issues
Read the tips and tricks that top developers from the .NET and SQL Server communities use to boost code and query performance in their applications. 50 tips from the .NET and SQL Server communities for boosting performance in your .NET application; Learn the secrets of your fellow developers and read advice from MVPs and other experts; Covers pe...
ASP.NET Core 2 Succinctly
Since Microsoft sent shockwaves through its developer community with the release of .NET Core in 2016, it's continued to improve and expand its open-source, cross-platform offerings. ASP.NET Core 2 is a key component of that progress, delivering modularity, better performance, and flexibility to web development. In ASP.NET Core 2 Succinctly, author...
.NET Microservices
This guide is an introduction to developing microservices-based applications and managing them using containers. It discusses architectural design and implementation approaches using .NET Core and Docker containers. To make it easier to get started with containers and microservices, the guide focuses on a reference containerized and microservice-ba...
Exploring .NET Core
Windows developers have always enjoyed the productivity boost you get with the .NET platform, tools like Entity Framework and ASP.NET, and the amazingly-powerful C# language. Now, .NET Core extends those same benefits to Linux-based systems, offering a true cross-platform solution for enterprise application development. The .NET Core tools, includi...
ASP.NET WebHooks Succinctly
Taking advantage of WebHooks is something that many developers want to achieve, but many struggle to find a starting point. In ASP.NET WebHooks Succinctly, Gaurav Arora guides readers through the necessary skills and processes to get started....
Sensor Technologies
Sensor Technologies: Healthcare, Wellness and Environmental Applications explores the key aspects of sensor technologies, covering wired, wireless, and discrete sensors for the specific application domains of healthcare, wellness and environmental sensing. It discusses the social, regulatory, and design considerations specific to these domains. ...