Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Beer City Code 2019: Optimize Your .Net Azure App Services

155 views

Published on

Check out more on my blog at: https://www.mcbeev.com/Blog/April-2019/I-m-Speaking-at-Beer-City-Code-2019

Azure App Services are basically the de facto standard as the best possible way to deploy and host a .Net Framework or .Net Core application, period. You can argue with me until you are blue in the face about other hosting methods or platforms, but you would still be wrong.

However, utilizing an Azure App Service as your hosting method is not the same as utilizing standard IIS, especially when it comes to optimization. During the session we will deploy a .Net Core MVC application to Azure, determine an initial baseline for performance, and then walk through how to configure various properties and server-side configurations that make that site blazing fast.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Beer City Code 2019: Optimize Your .Net Azure App Services

  1. 1. Azure App Services Optimize Your .Net #BCCGR Brian McKeiver
  2. 2. Favorite Beer: Too many to narrow it down, but lover of most (except Sours). Brian McKeiver Co-Owner, BizStream @mcbeev Hello!
  3. 3. Today’s Agenda 1 Basics, Setup, and Scenario 2 Azure App Service Settings Deep Dive 3 .Net Core Code Matters 4 More Tools of the Trade
  4. 4. The Basics, Setup, and Scenario PART ONE
  5. 5. How Many Ways Are There to Host Websites in Azure? Pop Quiz
  6. 6. 6
  7. 7. Azure App Service
  8. 8. Azure App Service Plan Azure App Service 1 Azure App Service 2 Azure App Service 3
  9. 9. App Service Deployment Slots Slot 2 Slot 3 Production Slot
  10. 10. KenticoCloud.com
  11. 11. https://assets-us-01.kc-usercontent.com/6680bf6d-984c- 4080-b416-4e3358bb54b4/6ccc91a2-a423-4699-aef9- c04ad55108fb/casestream-hero.jpg
  12. 12. Demo Time
  13. 13. Azure App Service Settings Deep Dive PART TWO
  14. 14. Settings
  15. 15. Platform and Stack
  16. 16. Platform and Stack: Part 2
  17. 17. 32-bit vs. 64-bit
  18. 18. 64 Bit vs 32 Bit (not what you might think) https://www.hanselman.com/blog/PennyPinchingIn TheCloudYourWebAppDoesntNeed64bit.aspx -50%
  19. 19. HTTP/2 is Fast Easiest Performance increase today
  20. 20. https://github.com/sjkp/letsencrypt- siteextension/wiki/How-to-install#install-the- lets-encrypt-site-extension
  21. 21. HTTP/2 Safer, Faster, Stronger than HTTP 1.1 80% https://http2.akamai.com/demo
  22. 22. Fun with Application Warm-ups
  23. 23. Don’t Overdo It Slot 2 (No) Slot (No) Production (Yes)
  24. 24. Always On Cut warm up time out https://stackoverflow.com/questions/45021 644/is-there-way-to-determine-why-azure- app-service-restarted/ 50%
  25. 25. A Few More…
  26. 26. Environment Vars
  27. 27. .Net Core Code Matters PART THREE
  28. 28. Static File Serving in .Net Core https://docs.microsoft.com/en-us/aspnet/core/fundamentals/static-files?view=aspnetcore-2.2
  29. 29. You Need to Optimize It
  30. 30. What About Compression?
  31. 31. Demo Time
  32. 32. Bundle to Reduce bundleconfig.json
  33. 33. One Thing about Code in the FileSystem The Azure Filesystem is notoriously slow Any kind of interaction with Files on the Filesystem is a big performance hit
  34. 34. Additional Tools of the Trade PART FOUR
  35. 35. Long Running Requests to Azure Apps
  36. 36. HangFire To The Rescue https://www.hangfire.io/
  37. 37. Diagnostics as a Service (DaaS) When you can’t figure out why things are slowww…
  38. 38. Application Insights / Monitoring
  39. 39. Azure CDN https://docs.microsoft.com/en-us/azure/cdn/cdn-add-to-web-app
  40. 40. The Ultimate Performance Modifier
  41. 41. Be Aware! Scale Out and Session State, use: Azure Redis Cache
  42. 42. The first 80% of performance increases are typically easy. REMEMBER
  43. 43. The last 20% of performance increases will crush your soul. REMEMBER
  44. 44. Questions?
  45. 45. THANK YOU!
  46. 46. Brian McKeiver @mcbeev brian@bizstream.com mcbeev.com bizstream.com Contact Me

×