Book Image

Apache Ignite Quick Start Guide

By : Sujoy Acharya
Book Image

Apache Ignite Quick Start Guide

By: Sujoy Acharya

Overview of this book

Apache Ignite is a distributed in-memory platform designed to scale and process large volume of data. It can be integrated with microservices as well as monolithic systems, and can be used as a scalable, highly available and performant deployment platform for microservices. This book will teach you to use Apache Ignite for building a high-performance, scalable, highly available system architecture with data integrity. The book takes you through the basics of Apache Ignite and in-memory technologies. You will learn about installation and clustering Ignite nodes, caching topologies, and various caching strategies, such as cache aside, read and write through, and write behind. Next, you will delve into detailed aspects of Ignite’s data grid: web session clustering and querying data. You will learn how to process large volumes of data using compute grid and Ignite’s map-reduce and executor service. You will learn about the memory architecture of Apache Ignite and monitoring memory and caches. You will use Ignite for complex event processing, event streaming, and the time-series predictions of opportunities and threats. Additionally, you will go through off-heap and on-heap caching, swapping, and native and Spring framework integration with Apache Ignite. By the end of this book, you will be confident with all the features of Apache Ignite 2.x that can be used to build a high-performance system architecture.
Table of Contents (9 chapters)

Installing Apache Ignite

Apache Ignite requires a Java 8 or higher runtime environment. You can download the source or binary version of Apache Ignite from to start working with the Apache Ignite grid.

There is no magic in installation; as of June 2018, the latest version is 2.5.o. Download the binary and extract the content and do the following:

  1. Browse to the installation directory and open the bin folder:
  1. Run the ignite.bat file in a Windows operating system or the file in macOS/Linux:
  1. Run Apache Ignite as a Windows service using NSSM.exe. Download NSSM.exe
  2. Copy NSSM.exe into the bin folder
  3. Open a command prompt and run the following commands, replacing {IGNIT_INSTALL_DIR} with the original Ignite installation directory path:
      nssm install ignite-poc {IGNIT_INSTALL_DIR}\bin\ignite.bat
nssm set ignite-poc AppDirectory {IGNIT_INSTALL_DIR}
nssm set ignite-poc AppStdout {IGNIT_INSTALL_DIR}\logs\sysout.log
nssm set ignite-poc AppStderr {IGNIT_INSTALL_DIR}\logs\syserr.log
nssm set ignite-poc AppStdoutCreationDisposition 2
nssm set ignite-poc AppStderrCreationDisposition 2
nssm set ignite-poc AppStopMethodSkip 6
  1. Open the Windows services.msc file and notice that a new service, ignite-poc, was created

Congratulations! You have successfully launched an ignite node and installed Ignite as a Windows service.