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 3.1 Succinctly
ASP.NET Core 3.1 Succinctly specifically covers the web development part of the ASP.NET Core framework, which has gone through some improvements since it was first released. In this updated e-book, Simone Chiaretta Ugo Lattanzi guide readers through the foundations of the library, cover its basic features, and cover the new version of the web appli...
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...
Real-Time ASP.NET Core 3 Apps with SignalR Succinctly
The ASP.NET Core SignalR library is open source and allows developers to simplify adding real-time web functionality to applications. This means that the server-side code can instantly push content to connected clients. In Real-Time ASP.NET Core 3 Apps with SignalR Succinctly, Dirk Strauss will show you how to use it to create a chat application wi...