fix(server): absorb healthy event bursts

This commit is contained in:
Kit Langton
2026-07-08 20:33:28 -04:00
parent 687dbba6a3
commit 0590819090
+3 -1
View File
@@ -6,7 +6,9 @@ import { HttpServerResponse } from "effect/unstable/http"
import { HttpApiBuilder } from "effect/unstable/httpapi"
import { Api } from "../api"
const subscriberCapacity = 256
// Session execution emits dense event bursts; allow healthy SSE clients enough
// time to absorb one without weakening the bounded slow-subscriber failure.
const subscriberCapacity = 4_096
function eventData(data: unknown): Sse.Event {
return {