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. Select a version of GemFire that matches the version of GemFire within your version of VMware GemFire for TAS because the gfsh command line interface has version matching restrictions. To determine the GemFire version for your version of VMware GemFire for TAS, see Product Snapshot in the VMware GemFire for TAS product documentation.

  2. Install GemFire following the directions in Installing VMware GemFire in the GemFire product documentation.

  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 in the VMware GemFire for TAS product documentation 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 in the VMware GemFire for TAS product documentation 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 in Accessing a Service Instance in the GemFire for TAS product documentation 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. For details about creating a region, see Create Regions in the GemFire for TAS product documentation.

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