Skip to main content
Samples

Learn by running real code

Every Clustron Zaris primitive as a small, focused .NET project you can clone and run. Read what each one shows, then open its source on GitHub.

Get started

Start here

Basic

The core Client SDK programming model — connect to a store, put and get values, and the option types you will use everywhere.

Working with data

Data operations

Bulk operations

High-performance PutMany / GetMany that collapse many keys into one round trip per owner.

Compare-and-swap

Optimistic concurrency control — update a value only if it has not changed, no locks required.

Transactions

Atomic multi-key transactions with optimistic conflict detection.

Search

Query data with the Search APIs — entities, labels, filtering, sorting and projection.

Counters

Distributed counters — increment and read a shared value atomically.

Coordinate instances

Coordination & patterns

Leases

Time-bound ownership of keys with expiry and revoke — the basis for safe coordination.

Leader election

Elect a single leader across instances using leases and watches; a survivor takes over on failure.

Watch

React to key and prefix changes in real time instead of polling.

Rate limiter

A distributed fixed-window rate limiter built on atomic counters.

Distributed job queue

A distributed, fault-tolerant job queue assembled from Zaris primitives.

Cache integration

ASP.NET Core caching

IDistributedCache

Use Zaris as an ASP.NET Core IDistributedCache provider — drop-in distributed caching.

HybridCache

L1 + L2 caching (in-memory plus distributed) for speed with consistency.

Run your first sample in minutes

Add the SDK, clone a sample, and press run — then adapt it to your app.