DBDB.io The Encyclopedia of Database Systems · Est. 2017
Database of Databases

Database Entry

Geode


Apache Geode is an open-source, in-memory distributed database designed to support transactional applications with the demand for low latency and high concurrency.[04][05]

Country of Origin
US
Start Year
2015 [20][21]
Former Name
Gemfire
Project Type
Open Source
Written in
Java
Supported Languages
C#, C++, Groovy, Java, Python, Scala
Derived From
Tanzu GemFire
Compatible With
Memcached, Redis
Operating System
All OS with Java VM
License
Apache v2

Database Entry

Geode


Apache Geode is an open-source, in-memory distributed database designed to support transactional applications with the demand for low latency and high concurrency.[04][05]

History[06][07]


Originally released commercially in 2002 under GemStone Systems as Gemfire, it was first used in Wall Street trading platforms. In 2010, GemStone Systems was acquired by VMWare and by 2013, Pivotal had spun out of VMWare and took Gemfire with it. Pivotal then proceeded to submit Gemfire to the Apache Incubator in 2015 under the name Geode, and was graduated to a top-level project in 2016. [TBD]

Concurrency Control[08]


Any modifications to caches are replicated and checked for consistency before acknowledging success. If there are any concurrent modifications, then changes are made according to time stamp. [TBD]

Data Model[09][05]


In a Geode distributed, system, caches are defined as an abstraction that describes the node of the in-memory storage for the data. Each cache contains regions, which data is stored in the form of key-value pairs. So caches are similar to the construct of databases and regions are similar to tables in a relational database.

Foreign Keys[10][11]


Although Geode doesn't support foreign keys, it provides a similar function called data colocation to store related data entries that have the same ID from different data regions into one single member. For example, the Geode system contains one customer records region and one customer orders region and they are related to each other through the customer.

By using colocation, users can maintain all records and orders information for a customer in a cache of a single member, which will be used by all operations regarding this customer only.

Indexes[12][13][08]


Geode uses hashCode() on the key to mapping a data entry to a specific position in the region, and the key is hashed by a fixed number of buckets.

Isolation Levels[14]


Geode supports repeatable reads, but its default allows for dirty reads. [TBD]

Logging[15]


Apache Log4j 2

Query Interface[16][17]


Geode supports Object Query Language (OQL) to query region data. Although OQL and SQL share many syntactical similarities, they differ a lot, such as OQL doesn't support aggregation functions, it supports querying on complex object graphs, attributes, and by default OQL queries on the value of the region rather than the key, etc.

The syntax for a OQL query is:

[IMPORT package]

SELECT [DISTINCT] projectionList

FROM collection1, [collection2, …]

[WHERE clause]

[ORDER BY order_criteria [desc]]

Geode also supports query index hints to filter on the specified index. Here is an example: Select projectionList From collection1.

Storage Architecture[18]


Geode follows the in-memory data grid (IMDG) outline. But it also has a disk store module to deal with data overflow and persistence. With the disk store, users can export data to disk when memory usage becomes too high or to persist data as a backup copy.

System Architecture[01]


Views[19]


Citations

21 sources
  1. http://geode.apache.org apache.org Dead — Check Archive
  2. http://geode.apache.org/releases apache.org Dead — Check Archive
  3. Overview (geode-core 2.0.0 API) apache.org
  4. Apache Geode — Performance is key. Consistency is a must. apache.org
  5. ApacheConBigData - Introducing Apache Geode - final.key linuxfound.org
  6. Apache Geode Spawns ‘All Sorts of In-Memory Things’ thenewstack.io Dead — Check Archive
  7. The Apache Software Foundation Announces Apache® Geode™ as a Top-Level Project - The ASF Blog apache.org Dead — Check Archive
  8. FAQ - Geode - Apache Software Foundation apache.org
  9. Index - Geode - Apache Software Foundation apache.org
  10. Understanding Custom Partitioning and Data Colocation | Geode Docs apache.org
  11. Colocate Data from Different Partitioned Regions | Geode Docs apache.org
  12. https://gemfire.docs.pivotal.io/99/geode/basic_config/data_entries_custom_classes/managing_data_entries.html pivotal.io Dead — Check Archive
  13. Managing Data Entries | Geode Docs apache.org
  14. Apache Geode — Documentation apache.org
  15. How Geode Logging Works | Geode Docs apache.org
  16. Using Query Index Hints | Geode Docs apache.org
  17. Querying with OQL | Geode Docs apache.org
  18. Disk Storage | Geode Docs apache.org
  19. #GeodeSummit - Where Does Geode Fit in Modern System Architectures | PDF slideshare.net
  20. Announcing Apache Geode Milestone Releases 1.0.0-incubating M1 & M2 – Seeking Testers | Blogs Archive apache.org Dead — Check Archive
  21. Open Sourcing GemFire - Apache Geode | PPTX slideshare.net
Revision #15