quarkiverse / quarkus-primefaces

Quarkus PrimeFaces Faces (JSF) Extension
https://github.com/primefaces/primefaces
Apache License 2.0
31 stars 3 forks source link

HTTP Session Cluster #168

Closed hendratommy closed 4 months ago

hendratommy commented 4 months ago

Hi,

As far as I know, being stateless Quarkus doesn't have HTTP Session, so how do we use SessionScope in multi node cluster? Any documentation to set this up?

Thanks,

tandraschko commented 4 months ago

you cant Quarkus has a local HttpSession but no passivation/clustering support And in general Quarkus doesnt support bean serialization and they have no plans for it to implement it

melloware commented 4 months ago

Yep your Quarkus apps must be standalone apps. If you need multiple instances of a particular app we handle this at our Load Balancer with "sticky bit" to always send the user to the same server once they log in. If that server dies they load balancer will send them to another server however it forces the user to re-authenticate. Its not that big of a deal for us because our servers almost never go down unless it is a planned outage and we do that off hours with little customers in the app.