.netperformancecachingredis

Redis cache optimization in .NET 8


The performance is not up to mark when serializing/deserializing a big JSON file (~3 MB). We are using Microsoft JSON serialization. Is there any other serialization that would help to optimize the cache and provide good serialization/deserialization performance?


Solution

  • I couldn't find a solution that met the requirements, so it took me 2-3 days to find the necessary solution. We use Protobuf-net for binary serialization/deserialization, and I've also created a small sample - https://github.com/mukesh82-net/RedisProtoBuf