perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
Apache License 2.0
9.64k stars 1.56k forks source link

Added MongoDB and JDBC based Session clustering feature (Jetty 9.4.x) #931

Open bhuva3 opened 6 years ago

bhuva3 commented 6 years ago

Now we can configure session persistence to MongDB or JDBC (Jetty 9.4.x support). using below

Spark.clusterSession(clusterNodeName
                ,clusterDatastoreDriverClassName
                ,clusterDatastoreName
                ,clusterCollectionName
                ,clusterDatastoreDriverConnectionUrl
                ,clusterScavengeInterval
        ); 

Added working example of this feature at GitHub

DaanVandenBosch commented 6 years ago

Will this pull request ever be merged? Session clustering would be a great feature.

tipsy commented 6 years ago

IMO it's unlikely to be included anytime soon. You could run Spark as a servlet on Jetty and configure session in Jetty directly?