Giter Site home page Giter Site logo

basic-gemfire-spring-server's Introduction

Sample GemFire System with Spring Boot Servers

Sometimes the application would like more control over all aspects of a system. Spring and GemFire embrace that concept. This project will show how to create a basic spring project to start up the GemFire servers.

How to deploy

The project was written with the idea that it would be run on some cloud somewhere. In the scripts directory there is an env.sh file. Just change the env.sh file to match your system

  • data_hosts - this would be the hosts that will run the spring boot server(s) that will host the content that is stored in GemFire. Recommend running 3 or more data hosts for data safety.
  • locator_hosts - Locators are a concept that allow GemFire components to each other. As the spring boot GemFire servers come online they will announce thier connection details as well as retrive the list of other hosts. Recommend running at least 2 for HA - 3 is always better for quorum.
  • locators - this is the internal address of the locators in a format that is friendly to GemFire applications.

Lets get this example running

  1. Configure env.sh to match your physical deployment
  2. Review the spring boot application code
  3. Review the spring boot application configuration
  4. Compile the spring boot application ./gradlew bootJar
  5. Install Java and GemFire on all systems ./install_gemfire.sh
  6. Upload the spring boot GemFire server application on the data hosts ./deploy_spring_app.sh
  7. Run it ./start_gemfire.sh

What Now

Well there are ton of things that can be done. This is just an example to help you getting started.

NOTE

This is a spring boot GemFire server - so it is a little different in that your spring configuration is in control.

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.