This document explains the conceptual difference between reference and cluster in eeCLOUD, and how to use them together to build scalable architectures.
A reference is a numeric value used to logically group records inside a Memory. It is a first-class dimension of the eeCLOUD engine, not a JSON field.
References are commonly used to represent:
await app.WriteData(
"myApp",
"orders",
new { total = 49.90 },
reference: userId
);A cluster is a physical partition of a Memory. When clustering is enabled, records are stored in separate tables or partitions based on their reference.
Clusters are designed to:
await app.WriteData(
"myApp",
"orders",
new { total = 49.90 },
reference: userId,
clusterized: true
);References and clusters serve different purposes and can be used independently or together.
In small datasets, a reference alone is often sufficient. In large multi-tenant systems, combining reference and clustering provides optimal performance and isolation.