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
TTL: 30s
Available Primitives
Section titled “Available Primitives”- Map (
LoomMap): A highly optimized ConcurrentHashMap heavily partitioned across the cluster. Supports compute-on-grid, entry processors, and TTL eviction. - Queue (
LoomQueue): A strictly ordered, multi-consumer FIFO queue. Blocks natively on empty polls using Virtual Threads. - Topic (
LoomTopic): A pub/sub broadcast mechanism. Fire-and-forget message delivery to all active listeners. - Set & SortedSet: Distributed collections ensuring uniqueness. Sorted maps provide O(log(N)) range queries.
- Lock (
LoomLock): Fenced, reentrant distributed locks. Safe against split-brain scenarios and clock drift. - Counter (
LoomAtomicCounter): Hardware-accelerated atomic counters. Ideal for rate limiting and uniquely identifying cluster-wide sequences.