Top secure & performance in .NET (edit)
- QueueBackgroundWorkItem
- WebBackgrounder
- WebActivatorEx
- Hangfire
https://www.danylkoweb.com/Blog/10-ways-to-speed-up-your-aspnet-mvc-application-EL
Source code samples
https://github.com/chaliy/inline_scheduler
https://github.com/NuGet/WebBackgrounder
Web Background Tasks with WebBackgrounder
https://www.dotnetcurry.com/aspnet-mvc/975/new-features-aspnet-mvc-5
What's new fundamental features of MVC 5:
- Scaffolding
- ASP.NET Identity
- One ASP.NET
- Bootstrap
- Attribute Routing
- Filter Overrides
This technique can make your background tasks within ASP.NET much more robust.
Performance Tuning - 15 Simple ASP.NET Performance Tuning Tips
https://stackify.com/asp-net-performance-tuning/
- Measure everything
- Pick the low-hanging fruit first
- Enable compression
- Reduce HTTP requests
- HTTP/2 over SSL
- Minify your files
- Load CSS first
- Load JavaScript last
- Shrink images
- Check your queries
- Cache your pages
- Cache parts of your pages
- Content delivery network (CDN)
- Shrink your libraries
- Avoid client-side redirects
https://www.codeproject.com/articles/41930/how-to-improve-the-performance-of-asp-net-mvc-web
Here are a few useful links to read more:
- Best Practices for fast websites
- Exceptional Performance
- Nice JavaScript libraries to help reduce the number of requests
- CSS Sprites: Image Slicing's Kiss of Death
https://www.c-sharpcorner.com/UploadFile/8a67c0/8-steps-make-your-Asp-Net-mvc-website-faster/
Life Cycle
- ASP.NET Application Life Cycle Overview for IIS 7.0
- ASP.NET Application Life Cycle
- ASP.NET Page Life Cycle
- HTTP Request Lifecycle Events in IIS Pipeline
https://dotnettekki.com/aspnet-mvc-page-life-cycle/
https://www.c-sharpcorner.com/article/asp-net-request-life-cycle/
https://www.codeproject.com/Articles/1168712/How-to-quickly-configure-your-MVC-website-in-IIS
https://www.dotnetcurry.com/aspnet/1263/aspnet-application-page-life-cycle-interview-question
https://codewithshadman.com/aspnet-mvc-request-life-cycle-and-application-events/ (HTTP Module)
https://www.dotnetcurry.com/aspnet/1263/aspnet-application-page-life-cycle-interview-question (First Request)
https://docs.microsoft.com/en-us/previous-versions/aspnet/swe97x0b(v=vs.100) (Application, Request, Server, Session, Response, Context, Trace)
Hangfire
https://docs.hangfire.io/en/latest/tutorials/send-email.html
https://www.codeproject.com/tips/1030288/asp-net-mvc-hangfire-execute-jobs-in-background-us
https://github.com/RawSanj/Hangfire-MVC-5-Web
https://code.4noobz.net/hangfire-quickstart-simple-tutorial/
https://www.c-sharpcorner.com/article/schedule-background-jobs-using-hangfire-in-asp-net-core/
Precompile Razor Views
https://stackoverflow.com/questions/49028212/precompile-asp-net-views-with-ms-build
Precompile with MSBuild
https://help.veracode.com/reader/4EKhlLSMHm5jC8P8j3XccQ/AM8PAkQKwsHbNYXy2VeX5Q
https://help.veracode.com/reader/4EKhlLSMHm5jC8P8j3XccQ/eP7B7mh55YlLmKLo~mWEgA
Console App (Global Exception Handling in c#)
Console App call Web Services (ASMX)
https://www.c-sharpcorner.com/UploadFile/a20beb/how-to-access-a-web-service-in-console-application/
Recurring Tasks - Schedule Tasks - Background Tasks - Multi threading with Cancellation Token (Using the cancellation token)
https://codereview.stackexchange.com/questions/119956/recurring-tasks-in-asp-net-mvc (Review code)
https://www.codeproject.com/articles/1067678/practical-multithreading-in-asp-net