An open API service indexing awesome lists of open source software.

https://github.com/jloisel/spring-boot-hazelcast

Spring Boot + Hazelcast Integration
https://github.com/jloisel/spring-boot-hazelcast

distributed-systems hazelcast spring spring-boot springboot2

Last synced: 2 months ago
JSON representation

Spring Boot + Hazelcast Integration

Awesome Lists containing this project

README

        

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](https://hazelcast.org).

This allows you to create a web application which supports single-jvm or clustered data structures depending on configuration in `application.yml`:

```yml
clustering:
driver: hazelcast # Enable Hazelcast Clustering
```
## Pre-Requisites

This project uses [Lombok](https://projectlombok.org/) 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.