Hazelcast and Spring Boot for Scalable Task Execution - A How-To Guide

Hazelcast and Spring Boot for Scalable Task Execution - A How-To Guide

This article shows you exactly that (along with combining Spring Beans and Hazelcast as a bonus!) and assumes that you’re moderately familiar with the structure and setup of a Spring Boot project (or at least the Spring Framework!).

Here at Peoplelogic, we aggregate and stitch together a lot of data from a lot of different sources on a regular basis – helping companies stay out of head of risks to their growth. Some of this aggregation takes a long time and we needed a way to distribute the processing of all this data across our fleet.   

When we first started looking into how to solve this problem, we had a hard time finding the right combination of libraries, examples, and versions to combine Spring Boot, Quartz, and Hazelcast into a distributed task engine.  Each one works great on their own, but what if we wanted to combine them?   

This article shows you exactly that (along with combining Spring Beans and Hazelcast as a bonus!) and assumes that you’re moderately familiar with the structure and setup of a Spring Boot project (or at least the Spring Framework!). We will use IntelliJ IDEA for the project, but any integrated development environment (IDE) that supports Gradle projects should work just fine.  Let’s get started!

Setup Your Project – Initializing Spring Boot and Gradle 

Start with the Spring Initializr, either from inside IntelliJ IDEA or via the web, or by cloning our demo starter project at https://github.com/peoplelogic/article-starter. You’ll wind up with a project structure that looks a bit like the following: 

With the project foundation in place, let’s get the project ready for Hazelcast. Open up the build.gradle file from the project you just cloned. Look for the dependencies section and add the following: 

implementation 'com.hazelcast:hazelcast-all:3.12.9' 

java springboot prog good-company scalable-task-execution hazelcast initialize-spring-boot initialize-gradle

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Spring Beans in Java

Spring IoC container is the core of the Spring Framework.In spring-based applications, objects live inside a spring containerThe container instan.

How to Install OpenJDK 11 on CentOS 8

What is OpenJDK? OpenJDk or Open Java Development Kit is a free, open-source framework of the Java Platform, Standard Edition (or Java SE).

Java Spring Boot First App

Step by Step to your First Spring App

Spring Boot Tutorials - Spring Boot Full Course

Spring Boot Tutorials | Full Course - What is Spring? Spring Boot is an open source Java-based framework used to create a Micro Service. Spring Boot contains a comprehensive infrastructure support for developing a micro service and enables you to develop enterprise-ready applications that you can “just run”.

Top 10 Advanced Java and Spring Boot Courses for Full-Stack Java Developers

These are best online courses to learn Spring Boot, Advanced Java, Docker, React, Microservices, DEvops, and Angular to become full stack Java developer.