In-Memory Data Grid

In-Memory Data Grids (IMDGs) store their data in-memory as opposed to traditional Database Management Systems that utilize disk as their primary storage mechanism. By utilizing system memory rather than disk, IMDGs are typically several orders of magnitude faster than traditional DBMS systems.

in_memory_data_grid

Some of the key features of GridGain In-Memory Data Grid include:

  • Distributed In-Memory Caching
  • Elastic Scalability
  • Lightning Fast Performance
  • Distributed In-Memory Transactions
  • Distributed In-Memory Queue and Other Data Structures
  • Web Session Clustering
  • Hibernate L2 Cache Integration
  • Distributed SQL Queries with Distributed Joins

For more information, click here.

Example

Basic put-get example

try (Grid grid = GridGain.start()) {
   GridCache<Integer, String> cache = grid.cache("partitioned");

   // Put objects into cache.
   for (int i = 0; i < 10; i++)
      cache.put(i, Integer.toString(i));

   // Get objects from cache.
   for (int i = 0; i < 10; i++)
      println("Got [key=" + i + ", value=" + cache.get(i) + ']');

   // Remove objects from cache.
   for (int i = 0; i < 10; i++)
      cache.remove(i);

   // Atomic put-if-absent.
   cache.putIfAbsent(1, "1");

   // Atomic replace.
   cache.replace(1, "1", "2");

   ...
}

Screencast

Duration: 02:40

Dive In

Get Apache 2.0 licensed In-Memory Data Fabric now:

Latest Download Documentation