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?
Don't call AsEnumerable on a collection before using LINQ
Never call .Wait() or .Result on a Task
Web API tracing
When you're profiling, prefer accuracy to detail
Make the most of connection pooling by closing SQLConnection as soon as possible
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
Monitoring memory consumption over time
Use JValue in JSON.Net to parse complex JSON objects that you don't have POCO types for
Profile, don't speculate!