Skip to main content

One post tagged with "concurrency"

View All Tags

ETags, When and How

· 11 min read
Hamdaan Khalid
Software Engineer, Azure Resource Graph
Badrish Chandramouli
Partner Research Manager, Microsoft Research

Garnet recently announced native support for ETag-based commands.

Native ETags in a cache-store enable real-world use cases such as maintaining cache consistency, reducing network bandwidth utilization, and avoiding full-blown transactions for several applications.

Garnet provides native ETag support for raw strings via a dedicated set of ETag commands (SETWITHETAG, GETWITHETAG, SETIFMATCH, SETIFGREATER, GETIFNOTMATCH, DELIFGREATER). It is not available for objects (such as sorted-set, hash, list). Important: Users must partition their keys and use only ETag commands on ETag-managed keys. Mixing ETag and non-ETag commands on the same key results in undefined behavior. You can find the ETag API documentation here.

This article explores when and how you can use this new Garnet feature for both your current and future applications.