Spring Boot + Hazelcast Integration
Spring Boot Web application with configurable clustering:
cluster-api: Interfaces hiding the clustering implementation used,cluster-jvm: no clustering backed by JVM data structures (like HashMap),cluster-hazelcast: clusterting backend by Hazelcast.
This allows you to create a web application which supports single-jvm or clustered data structures depending on configuration in application.yml:
clustering:
driver: hazelcast # Enable Hazelcast ClusteringThis project uses Lombok which requires Annotations Processors to be enabled in Eclipse / Intellij when importing from sources. Requires Java 8 or later.
Run with intellij:
- Main class:
com.octoperf.Application - Use classpath of module:
application, - Working Directory:
$MODULE_DIR$, - VM Options:
-Dspring.profiles.active=hazelcastto run with hazelcast clustering. Nothing otherwise.