Cosmosis
Azure Cosmos DB Wrapper Library (.NET)
Born from running into Cosmos DB pitfalls firsthand - silent client-side query evaluation, lost writes from missing concurrency checks, and Entity Framework pretending Cosmos is RDBMS. Cosmosis is a thin wrapper around the raw SDK that makes the safe path the default path.
- Optimistic concurrency by default - Updates accept a function rather than a document, with ETag If-Match always on. Conflicts retry automatically instead of silently overwriting.
- Constrained query builder - A LINQ-alike interface that only exposes operations Cosmos can actually execute server-side, turning runtime surprises into compile-time errors.
- Resilience as configuration, not afterthought - Categorized retry tracking, exponential backoff, and explicit tradeoff options for inherently ambiguous operations like create-after-timeout.