Skip to content

jloisel/spring-boot-hazelcast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot + Hazelcast Integration

Introduction

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 Clustering

Pre-Requisites

This project uses Lombok which requires Annotations Processors to be enabled in Eclipse / Intellij when importing from sources. Requires Java 8 or later.

Demo Application

Run with intellij:

  • Main class: com.octoperf.Application
  • Use classpath of module: application,
  • Working Directory: $MODULE_DIR$,
  • VM Options: -Dspring.profiles.active=hazelcast to run with hazelcast clustering. Nothing otherwise.