Data Regions
The region is the core building block of the Apache Geode cluster. All cached data is organized into data regions and you do all of your data puts, gets, and querying activities against them.
-
Apache Geode provides
gfsh
commands, APIs, and XML configuration models to support the configuration and management of data regions. -
To be able to perform all available operations on your data regions, follow these region naming guidelines.
Region Shortcuts and Custom Named Region Attributes
Geode provides region shortcut settings, with preset region configurations for the most common region types. For the easiest configuration, start with a shortcut setting and customize as needed. You can also store your own custom configurations in the cache for use by multiple regions.
Storing and Retrieving Region Shortcuts and Custom Named Region Attributes
Use these examples to get started with Geode region shortcuts.
-
Use region attributes to fine-tune the region configuration provided by the region shortcut settings.
Creating Custom Attributes for Regions and Entries
Use custom attributes to store information related to your region or its entries in your cache. These attributes are only visible to the local application and are not distributed.
Building a New Region with Existing Content
A new region or cluster may need to be loaded with the data of an existing system. There are two approaches to accomplish this task. The approach used depends upon the organization of both the new and the existing cluster.