Key-Value Patterns

Counter-ID Document Lists with ID-Key

This pattern is a combination of an always-incrementing atomic counter (used as an ID), and a set of documents that use the ID in the key.

Lookup Multiple Channels to Retrieve a Document

This pattern is a way to lookup a single document using multiple keys, like looking up a User by email, Facebook ID, TwitterID, username, etc.

Auto-Versioning Automatically Keep Document Versions on a Particular Key

This pattern abstracts write operations through a common method to enable easy auto-versioning of individual keys.

Smart CAS Conditionally Retry Compare-And-Swap (CAS) operations

This pattern is a way to detect collisions at the JSON key level, and retry CAS operations if the json key being modified has not changed.