gin-contrib/sessions on Redis 8, Valkey 8.1 and KiviDB: less memory and more throughput, but a higher p99 at 500 connections
Murtaza Shajapurwala ยท 2026-11-24
gin-contrib/sessions reaches Redis through boj/redistore, which sends GET and SETEX for each session. On 200k 512 B sessions KiviDB used 111.2 MB against 137.5 MB for Redis 8.10 and led on throughput, but its 500-connection p99 was 3.18 ms against 1.89 ms for Valkey.