Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(orchestration): bound in-memory read model and client per-thread state #4176

ClosedRusiruSadathana(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/4176/headopened View on GitHub

Showing 17 changed files with 58 additions and 47 deletions (loading 14).

x
0 of 17 viewed, 17 left
22 additions and 12 deletionsapps/server/src/orchestration/Layers/OrchestrationEngine.tsModified
View file
@@ -1,9 +1,4 @@
-import type {
- OrchestrationEvent,
- OrchestrationReadModel,
- ProjectId,
- ThreadId,
-} from "@t3tools/contracts";
+import type { OrchestrationEvent, ProjectId, ThreadId } from "@t3tools/contracts";
import { OrchestrationCommand } from "@t3tools/contracts";
import * as Cause from "effect/Cause";
import * as Clock from "effect/Clock";
@@ -13,6 +8,7 @@
import * as Duration from "effect/Duration";
import * as Effect from "effect/Effect";
import * as Exit from "effect/Exit";
+import * as HashMap from "effect/HashMap";
import * as Layer from "effect/Layer";
import * as Metric from "effect/Metric";
import * as Option from "effect/Option";
@@ -37,8 +33,13 @@
type OrchestrationDispatchError,
type OrchestrationProjectorDecodeError,
} from "../Errors.ts";
+import {
+ createEmptyCommandReadModel,
+ fromWireReadModel,
+ type CommandReadModel,
+} from "../commandReadModel.ts";
import { decideOrchestrationCommand } from "../decider.ts";