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 ...