Runtime
Page Stores
By default Wicket stores the stateful pages serialized on the local disk (DiskPageStore). When the application is heavily used this may lead to performance regressions.
The modules provided by this project aim to provide better implementations which store the data in memory and may provide replication facilities.
To use one of these you have to configure Wicket by providing a customized IPageManagerProvider, e.g. using Ignite as the persistent store:
setPageManagerProvider(new DefaultPageManagerProvider(this) {
@Override
protected IPageStore newPersistentStore() {
IIgniteSettings settings = new IgniteSettings();
settings.getAddresses().add("localhost");
return new SerializingPageStore(new IgniteDataStore(getName(), settings),
getFrameworkSettings().getSerializer());
}
});
Modules
All modules have the group id org.wicketstuff. Import org.wicketstuff:wicketstuff-bom in your dependencyManagement section to manage the version.
Memcached
Uses Memcached as a backend and spymemcached as a Java driver.
<dependency>
<groupId>org.wicketstuff</groupId>
<artifactId>wicketstuff-datastore-memcached</artifactId>
</dependency>
Cassandra
Uses Apache Cassandra as a backend and the DataStax java-driver-core as a Java driver.
<dependency>
<groupId>org.wicketstuff</groupId>
<artifactId>wicketstuff-datastore-cassandra</artifactId>
</dependency>
Redis
Uses Redis as a backend and Jedis as a Java driver.
<dependency>
<groupId>org.wicketstuff</groupId>
<artifactId>wicketstuff-datastore-redis</artifactId>
</dependency>
Hazelcast
Uses Hazelcast as a backend and its official Java driver.
<dependency>
<groupId>org.wicketstuff</groupId>
<artifactId>wicketstuff-datastore-hazelcast</artifactId>
</dependency>
Ignite
Uses Apache Ignite as a backend and the Ignite thin client as a Java driver.
<dependency>
<groupId>org.wicketstuff</groupId>
<artifactId>wicketstuff-datastore-ignite</artifactId>
</dependency>
Common
Provides SessionQuotaManagingDataStore, an IPageStore implementation that manages the memory usage by HTTP session. It should be used as a wrapper around another IPageStore implementation.
<dependency>
<groupId>org.wicketstuff</groupId>
<artifactId>wicketstuff-datastore-common</artifactId>
</dependency>
The datastore-tests module contains a mini testing framework and demo application shared by the other modules.
License
Apache 2.0.
Author
Source: datastores-parent