Skip to content

Data Structures

LoomCache natively implements 7 distinct, distributed data topologies on top of Raft consensus. This means you aren’t just getting a Key-Value store; you get a robust toolkit for state coordination, locking, and stream processing.

Distributed Data Structures

7 built-in primitives. Fast, durable, and strictly linearizable.

"user:101"{ name: "Alice" }
"config:rateLimit"5000
"session:temp"Writing...
TTL: 30s
  1. Map (LoomMap): A highly optimized ConcurrentHashMap heavily partitioned across the cluster. Supports compute-on-grid, entry processors, and TTL eviction.
  2. Queue (LoomQueue): A strictly ordered, multi-consumer FIFO queue. Blocks natively on empty polls using Virtual Threads.
  3. Topic (LoomTopic): A pub/sub broadcast mechanism. Fire-and-forget message delivery to all active listeners.
  4. Set & SortedSet: Distributed collections ensuring uniqueness. Sorted maps provide O(log(N)) range queries.
  5. Lock (LoomLock): Fenced, reentrant distributed locks. Safe against split-brain scenarios and clock drift.
  6. Counter (LoomAtomicCounter): Hardware-accelerated atomic counters. Ideal for rate limiting and uniquely identifying cluster-wide sequences.