Skip to content

V2.5.0

Choose a tag to compare

@jeremydmiller jeremydmiller released this 02 Jun 02:27
· 783 commits to main since this release

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 new tenant_id progression column.
  • Capability gate. IHighWaterDetector.SupportsTenantPartitioning (default false) is the single switch that lights up the tenant-aware paths in the base JasperFxAsyncDaemon; 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 ShardName overload on IEventStore.BuildEventLoader so 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}:All shard.

Fixes

  • Fix a Command.Start optimized-rebuild double-load in SubscriptionAgent that could re-load 0 → HighWater after the catch-up executor and duplicate the progression INSERT (pk_mt_event_progression 23505). The agent's in-memory LastEnqueued/LastCommitted marks are now reconciled to the high-water mark on the successful start path.

Notes

  • JasperFx.RuntimeCompiler continues to version independently (5.0.0) and is unchanged.