Messaging

Managed projection distribution with the Critter Stack

JasperFx (Critter Stack) Blog Jeremy Miller
Messaging

Wolverine can own the assignment of Marten and Polecat async projections across a cluster, replacing Marten's single hot node model. The post explains fair-by-default placement, capacity-aware assignment, database affinity for multi-tenanted stores and what CritterWatch adds.

Key points

  • One line, `UseWolverineManagedEventSubscriptionDistribution = true`, replaces `AddAsyncDaemon()` and hands projection placement to Wolverine's leader election.
  • Every projection shard runs on exactly one node; reassignment happens automatically when nodes join, leave or fail mid-deployment.
  • Default placement balances agents by count; `CapacityAwareAssignment` plus `NodeLoadMonitor` lets overloaded nodes shed work instead of collecting more.
  • Stores backed by multiple databases switch to database affinity, keeping a database's agents on one node to limit connection pools.
  • `UseTenantPartitionedEvents` with `TenancyStyle.Conjoined` gives each tenant its own sequence and progress; one customer runs ~52,000 agents across 512 databases.
  • CritterWatch adds cluster/agent views, pause, rebuild, rewind and pin controls, audit logs, MCP endpoints and LLM-assisted alert triage.

Real-world use

  • A multi-tenant SaaS with one database per tenant that must keep hundreds of tenant databases in a single cluster
  • A blue/green rollout where a new projection version catches up on dedicated warm-up nodes before cutover
  • A high-volume event sourced system keeping dozens of read models continuously up to date
  • Teams that need to rebuild one slow or oversized tenant's read models without touching the rest

This summary was generated by the agent from the original post on JasperFx (Critter Stack) Blog. The full text and all rights belong to its author and publisher. Go to original

Report this story

Is something wrong with the summary, or do you own this content? Your message comes straight to my inbox.

Type of message

Related stories

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message