Repository navigation
V2.5.0
JasperFx 2.5.0
Per-tenant event partitioning and a tenant-aware async projection daemon (#407, CritterWatch#209). This is the top-of-chain release for the per-tenant partitioning initiative consumed downstream by Marten, Polecat, and Wolverine.CritterWatch.
Highlights
- Per-tenant partitioning surface (Phase 0). Hooks for partitioning the event/stream tables by tenant with a per-tenant sequence, and progression keyed per-(name, tenant) by folding the tenant into the shard identity (
{Name}:{ShardKey}:{tenantId}) — no newtenant_idprogression column. - Capability gate.
IHighWaterDetector.SupportsTenantPartitioning(defaultfalse) is the single switch that lights up the tenant-aware paths in the baseJasperFxAsyncDaemon; stores opt in when their wiring is ready. - Vectorized per-tenant high-water detection. One agent per database emits a per-tenant high-water vector in a single round-trip, with a dynamic polled-tenant set.
- Per-tenant rebuilds. Per-tenant rebuild ceilings, cross-tenant rebuild fan-out, and a
ShardNameoverload onIEventStore.BuildEventLoaderso a partitioned store can scope event loading to a single tenant. - Composite single-pass rebuild executor. Read-once / fan-out rebuild for composite projections, with progression keyed on the composite's single
{Name}:Allshard.
Fixes
- Fix a
Command.Startoptimized-rebuild double-load inSubscriptionAgentthat could re-load0 → HighWaterafter the catch-up executor and duplicate the progression INSERT (pk_mt_event_progression23505). The agent's in-memoryLastEnqueued/LastCommittedmarks are now reconciled to the high-water mark on the successful start path.
Notes
JasperFx.RuntimeCompilercontinues to version independently (5.0.0) and is unchanged.