An efficient app development workflow first tests the app in a local development environment. Development continues by pushing the app to a platform space for production testing with a VMware GemFire for TAS service instance. Local development shortens the design loop by eliminating the time it takes to push the app to the platform environment.

The Local Cluster Environment

To develop locally, you will need access to a cluster that acts as a stand-in for a VMware GemFire for TAS service instance. A GemFire cluster works well as a stand-in. Instantiation and configuration of a GemFire cluster uses gfsh, a command-line configuration tool distributed with GemFire.

Follow these steps to obtain, install, and instantiate a GemFire cluster:

  1. Download the VMware GemFire distribution artifact from VMware Tanzu Network. To ease the development effort, choose a version of GemFire that matches the version of GemFire within your version of VMware GemFire for TAS, as the gfsh command line interface has version matching restrictions. You can find the GemFire version within VMware GemFire for TAS in the Product Snapshot for your version of VMware GemFire for TAS.

  2. Install GemFire following the directions at Installing VMware GemFire.

  3. Use gfsh to instantiate and configure the local GemFire cluster. Follow any of the examples in the GitHub node-examples repository. Each example contains a scripts directory with a script that starts up a local GemFire cluster and creates the regions using gfsh. Copy and modify one of these scripts for use with your custom environment.

The Platform Environment

Use the directions in Create or Delete a Service Instance to instantiate a VMware GemFire for TAS service instance. A dev plan will be sufficient for running any of the examples. Directions in View Available Plans describe how to see the plans available for your custom environment.

Your app will will do CRUD operations on data in regions. Create those regions on the servers within the VMware GemFire for TAS service instance by using gfsh. First, connect to the service instance using gfsh. Then, create the region using gfsh.

The instructions within Accessing a Service Instance describe these steps for connecting to the VMware GemFire for TAS service instance:

  1. Create a service key. The service key will contain the gfsh command needed to connect to the VMware GemFire for TAS service instance.
  2. Run gfsh.
  3. Connect using the gfsh command from the service key.

Once connected, use gfsh create the regions needed by your app. Create Regions details how to create a region.

check-circle-line exclamation-circle-line close-line
Scroll to top icon