Ahaaas! - July 2020

In fast paced technology world, developers discover new insights practically on a daily level. Surely you have experienced these moments of almost divine wisdom, ending with “Now I know xyz can do that” or “I have to be aware of xyz” or “Eureka!”. I have recorded my moments of clarity, or Ahaaas as I call them, hoping that some of them will prove useful to you, whether you’d be dealing with .NET development, Azure or Docker.

.NET

Azure

  • If you use sessions with Azure Service Bus, be sure to assign session identifier to messages before sending them. Service Bus will not complain if session is missing on enqueue, but will make hell for consumers on delivery and practically keep messages in queue and attempt to deliver them, until expired.
  • You can use Azure Log Analytics to collect custom virtual machine logs https://docs.microsoft.com/en-us/azure/azure-monitor/platform/data-sources-custom-logs. In Portal, open your Log Analytics workspace and go to Advanced Settings->Data->Custom Logs. You can also collect Windows Event and IIS Logs, as well as Linux Syslog, in a similar fashion.
  • Data sampling, configured in Application Insight’s Usage and Estimated Costs, has no effect if you are using ASP.NET core applications without modifying telemetry sampling configuration. Ingested data can significantly increase costs, especially if Azure Functions are used, so use Daily Cap setting to get notified if the amount ingested passes the limit.
  • Microsoft Q&A is generally available and should help you find any technical information regarding Azure services https://docs.microsoft.com/en-us/answers/products/

Miscellaneous

  • Nice overview of most commonly used open source licenses, with usage restrictions https://choosealicense.com
  • Steve Dunn used Blazor to recreate original Pacman http://pacmanblazor.azurewebsites.net. With a little bit of JS interop, he was able to demonstrate potential of client-side Blazor running on WebAssembly. Source code can be found on Github
  • Postman automatically converts POST requests if it receives a 301 redirect status code. In this situation, it drops any request content and issues a GET request to redirecting location without any body data. This can lead to trouble, as user is never notified of such change during request execution. To avoid such issues, better turn off automatic redirects in Postman settings.
  • Elasticsearch .NET client version 7.1.0 seems to have issues when running on .NET core 3.0. Updating client to latest version (7.8.0 at the moment of writing) seems to help.
So you want to be an Azure Solutions Architect Expert - Part 2 So you want to be an Azure Solutions Architect Expert - Part 1

Comments

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×