Difficulty: intermediate
Estimated Time: 5-10 minutes

Learning Objectives

This interactive tutorial shows you how to deploy and run a single instance of RHDG Red Hat Data Grid on OpenShift.

You then learn how to expose the REST endpoint and invoke simple cache operations.

Introduction to Red Hat Data Grid


Red Hat Data Grid (RHDG) is an open source, in-memory data store that:

  • Stores data in memory (RAM) to provide fast, low-latency response times and very high throughput.
  • Synchronizes data across multiple nodes for continuous availability, reliability, and elastic scalability.
  • Offers flexibility. You can use it as a distributed cache, NoSQL database, or event broker.

RHDG capabilities improve application performance and scalability while reducing the need to make expensive calls to database management systems and transactional back ends.

In this tutorial, you got an overview of Red Hat Data Grid and learned how easy it is to invoke basic cache operations over REST.

Check out some of the other components in Red Hat OpenShift Application Runtimes, such as the Vert.x scenario to learn about other runtimes available from Red Hat.

Getting Started with Data Grid on OpenShift

Step 1 of 3

Login to OpenShift

Red Hat OpenShift Container Platform is the preferred runtime for Red Hat Data Grid and is based on the Kubernetes container-orchestration system.

If you are new to OpenShift, you should complete Introduction to OpenShift before you start this tutorial.

1. Logging in to OpenShift

Run the oc login command as follows:

oc login -u developer -p developer

This command authenticates you to OpenShift with the following credentials:

  • Username: developer
  • Password: developer

2. Creating a project

Create a project for your RHDG application as follows:

oc new-project example --display-name="Simple RHDG REST App"

3. Opening the OpenShift console

OpenShift provides a console that lets you work with application deployments from a browser window.

  1. Select the "OpenShift Console" tab to launch the console in your browser. OpenShift Console Tab

  2. Enter your credentials when prompted to authenticate and then select "Log in". Web Console Login The console displays the projects that you can work with. Web Console Projects

  3. Select the "Simple RHDG REST App" project that you created to view all of the resources available in your project: Web Console Overview

At the moment your project does not have any available applications or resources. Proceed to the next section and start creating a deployment.

Local Web Browser
OpenShift Console