Giter Club home page Giter Club logo

sample_hazelcast_spring_datagrid's Introduction

Hazelcast With Spring Boot Demo Project Twitter

In this project I'm demonstrating you the most interesting features of Hazelcast and its integration with Spring Boot and Spring Data to build cache or distributed in-memory data grid.

Getting Started

Currently you may find here some examples of application that integrates Hazelcast with Spring Boot and Spring Data. Some of them are divided into the branches and described in a separated articles on my blog. Here's a full list of available examples:

  1. Using Hazelcast as 2nd level JPA Cache for Hibernate and MySQL database. The example is available in the branch master. A detailed guide may be find in the following article: JPA caching with Hazelcast, Hibernate and Spring Boot.
  2. Using Hazelcast with Striim for enabling hot cache between MySQL database and in-memory data grid. The example is available in the branch striim. A detailed guide may be find in the following article: Hazelcast Hot Cache with Striim.
  3. Using Hazelcast cluster on Kubernetes with Spring Boot. The example is available in the branch master. A detailed guide may be find in the following article: Hazelcast With Spring Boot on Kubernetes.
  4. Using Hazelcast cluster with Spring Boot that programically stores data in the two sources: MySQL and Hazelcast. The example is available in the branch master. A detailed guide may be find in the following article: In-memory Data Grid with Hazelcast.

Usage

In the most cases you need to have Maven and JDK8+. In the third example with Kubernetes you will have to run Minikube on your machine. The best way to run the sample applications is with IDEs like IntelliJ IDEA or Eclipse.

Architecture

Our sample microservices-based system consists of the following modules:

  • employee-service - a module which is a simple Spring Boot application for storing Employee objects in Hazelcast and MySQL (optionally)
  • person-service - a module which is a simple Spring Boot application for storing Person objects in Hazelcast and MySQL (optionally)
  • employee-service-kubernetes - a module dedicated only for 3rd example based on Kubernetes.

The following picture illustrates the architecture for running Hazelcast on Kubernetes (Minikube) (Example 3).


The following picture illustrates the architecture for running Hazelcast with Striim as a hot cache for MySQL database (Example 2).


The following picture illustrates the architecture for running Hazelcast with Spring Boot as in-memory data grid that programically stores data in two sources (Example 4).


sample_hazelcast_spring_datagrid's People

Contributors

kaushikdasroy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.