Skip to main content
Table of Contents

Interface IBucket

Namespace
Stratara.Abstractions.Entities
Assembly
Stratara.Abstractions.dll

Persistence-level entity carrying a bucket id used by the command-bus serialisation layer to dispatch aggregate-scoped commands single-writer per bucket.

public interface IBucket
Extension Methods

Remarks

Computed via BucketCalculator.GetBucketId(aggregateId) — hash modulo BucketCount. Collisions within a bucket are tolerated (they just serialise more than strictly needed).

Properties

BucketId

The bucket index in [0, BucketCount).

int BucketId { get; set; }

Property Value

int