New article how we drastically improved the Redis distributed cache performance. It's actually faster than the current memory cache.
https://www.majako.net/making-nopcommerce-faster-and-scalable-with-improved-caching-familywallpapers
Our changes to the caching strategy can broadly be summarised in three points:
- a new distributed cache option RedisSynchronizedMemory, a regular fast memory cache that uses Redis events to keep instances in sync,
- lazily acquiring data on cache misses to avoid duplicating work, and
- storing large collections in specialised data structures for faster retrieval.
For FamilyWallpapers, these combined improvements resulted in a decrease of, on average,
98 % of startup time,
71 % of maximum memory usage, and
96 % of response times
on a benchmark battery compared to using the distributed cache included in nopCommerce 4.60.
Compared to the old memory cache, we observed a reduction of
86 % of startup time and
27 % of maximum memory usage.
Lower and more predictable memory usage allows us to host the site on a cheaper server without risking performance dips or downtime, while faster startup and warmup lets us quickly scale to meet increased traffic during peak hours. Faster response times, of course, are crucial to a smooth user experience for the customers.
Read the full article https://www.majako.net/making-nopcommerce-faster-and-scalable-with-improved-caching-familywallpapers