Skip to content

RememberEvent

RememberEvent = { entityId: string; kind: "started"; shardId: number; } | { entityId: string; kind: "stopped"; shardId: number; }

Defined in: src/cluster/sharding/RememberEntitiesStore.ts:10

Append-only event recording an entity’s lifecycle on the coordinator side. The coordinator emits one of these every time handleEntityStarted or handleEntityStopped runs (when rememberEntities: true); replaying the full event log on coordinator restart rebuilds the in-memory entitiesPerShard map.