tree: 83f832589e6939fc14639e9b1565fcae93ce8ace [path history] [tgz]
  1. scripts/
  2. src/

Geode Compression example

This is a simple example that demonstrates enabling Compression in a replicated region. The Default compression algorithm included with Geode is Snappy. Additionally, you can specify your own compressor algorithm as well by implementing org.apache.geode.compression.Compression Interface. For enabling compression on a Geode region you can follow the official document.

This example assumes you have installed Java and Geode.


  1. From the geode-examples/compression directory, build the example and run unit tests

     $ ../gradlew build
  2. Next start the locator, two servers and create replicated region example-region with compression enabled.

     $ gfsh run --file=scripts/start.gfsh
  3. Run the example to create and get entries using Geode Java Client from the region

     $ ../gradlew run
  4. Shut down the system:

     $ gfsh run --file=scripts/stop.gfsh