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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.