Have you seen Thomas’ work to support lazy loading of offline session that keeps them (mostly) in the DB and is therefore targeted at infrequently accessed offline sessions?
https://github.com/keycloak/keycloak/pull/7722
Best regards,
Sebastian
Mit freundlichen Grüßen / Best regards
Dr.-Ing.
Sebastian Schuster
Project Delivery Berlin 22 (IOC/PDL22)
Bosch.IO GmbH | Ullsteinstr. 128 | 12109 Berlin | GERMANY |
www.bosch.io
Tel. +49 30 726112-485 | Mobil +49 152 02177668 | Telefax +49 30 726112-100 |
Threema / Threema Work: MF9VMEAE |
Sebastian...@bosch.io
Sitz: Berlin, Registergericht: Amtsgericht Charlottenburg; HRB 148411 B
Aufsichtsratsvorsitzender: Dr.-Ing. Thorsten Lücke; Geschäftsführung: Dr. Stefan Ferber, Dr. Aleksandar Mitrovic, Yvonne Reckling
--
You received this message because you are subscribed to the Google Groups "Keycloak Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
keycloak-dev...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/keycloak-dev/2b5ec69e-acc6-42e1-b115-5e0a748d25d0n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/f1f2bcbf-51b3-4726-af5b-321800bc6cabn%40googlegroups.com.
Hi Thomas,
Oh yes, that is a very good point! This would of course make it possible to control memory usage.
I actually tried this back when I was optimizing preload, and if I remember correctly it failed due to some cache eviction issues. I think the eviction strategy was being changed around version 12 so I might give it another try.
I guess a setup like this will first have the overhead of distributing the cache objects, and very soon thereafter have additionally overhead for distributing the eviction. It is precisely these async distributed tasks I want to avoid.
Would it perhaps be possible to configure the offline user session and client session caches to be local infinispan caches instead of distributed ?
Could you perhaps share some of the considerations from your initial discussion with the Keycloak team regarding a pure database backed version ?
For now, I’m still optimistic about writing a pure database version 😊
Kind regards,
Peter