General tips

Now that we know the differences, let's move on to some tips and tricks that are based on top of these architectural differences and more:

  • Recently, I was working on the performance optimization of the ASP.NET Core app. We had used in-memory caching with a cache get timeout of five seconds. You would expect that any data from in-memory caching would be retrieved in a matter of milliseconds as it is an in-process cache and this was generally true. However, under load we figured out that data was not getting picked up from the cache. Once we added logging, we figured out that the Get operation in cache was timing out. Yes, even with a five-second value, we had a timeout while fetching data from the cache. On investigation, we ...

Get .NET Core 2.0 By Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.