Keeping up with Keycloak
summary
Migrating an authentication stack that holds 40 million users and ~7–8M monthly sessions, the team upgrades Keycloak through versions 9→12→15→18 while pairing Infinispan 11→13, hits crippling CPU spikes from the new soft‑index file store and Keycloak 18 iterating caches, and measures behavior with Gatling and Grafana. JProfiler crashes, so profiling uses Pyroscope to find the traversal hotspot, and the effective short‑term fix is to fall back to Infinispan 11 while planning an upgrade path to Keycloak 22 / Infinispan 14.
AI-written summary · about
chapters (13)
- 0:00Introduction and speakers
- 2:36What is Keycloak
- 4:01Why switch from legacy system
- 5:39Choosing Keycloak over alternatives
- 6:02High-level system architecture
- 9:57Keycloak custom providers
- 12:06Why upgrade Keycloak versions
- 15:16Performance testing setup
- 17:33Load testing challenges
- 20:47Profiling and debugging issues
- 23:05Keycloak upgrade challenges
- 24:59Future upgrade plans
- 25:45Q&A session
