I read about payara(glassfish) server cluster and find out that clustering with payara only replicate session in multiple servers.

but I use jwt for my project so I don't use session at all.

I decided not to cluster servers and just use multiple servers without connecting to each other and have Load Balancer in-front of them, Am I losing something ?

1 Answer 1


Are you losing anything ? Depends on whether you are dependant on the j2ee specs. For example JCA, If not then stay away.

Stateless services are way more flexible in terms of Scalability.

And more over its easy to refactor to microservices.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.