talira

Microsoft Research's Redis-compatible cache-store, built on .NET

open sourceMITself-hostablefree

Garnet is a remote cache-store from Microsoft Research that speaks Redis's RESP wire protocol, so unmodified Redis clients work with it. It aims at high throughput with many client connections and very low tail latency, and runs on Linux and Windows on .NET. It supports strings with expiry, HyperLogLog, bitmaps, sorted sets, lists and other objects, client-side transactions, Lua scripts, and server-side stored procedures, modules and custom commands written in C#. Its Tsavorite storage engine adds tiered storage (memory, SSD and cloud), checkpointing and recovery, and it supports TLS, basic access control and cluster mode with sharding, replication and key migration. Vector sets (approximate nearest-neighbour search on DiskANN) and range indexes are in preview. Azure Cosmos DB Garnet Cache is the managed service.

Problems it solves

  • a faster drop-in replacement for Redis that my existing Redis clients can talk to
  • a cache server that handles many client connections with low tail latency
  • write custom cache commands in C# instead of Lua
  • a Redis-compatible store that can spill to SSD or cloud storage

Features

  • RESP protocol: works with existing Redis clients
  • strings, HyperLogLog, bitmaps, sorted sets, lists and other objects
  • Lua scripts, transactions, and stored procedures and custom commands in C#
  • Tsavorite storage: tiered memory, SSD and cloud storage, checkpointing
  • cluster mode with sharding, replication and key migration
  • TLS and basic access control
  • vector sets and range indexes (preview)

Capabilities

Takes pluginsplan not known

Alternatives

The same job

These do what Garnet does.

  1. Valkey An open source (BSD) high-performance key/value datastore
  2. Dragonfly The world's most efficient in-memory data store
  3. Redis The preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine
  4. Apache Kvrocks A distributed key value NoSQL database compatible with the Redis protocol

Compare Garnet with the top 3