PR J: Redis-backed Event Bus broker (feature-flagged) #14
Reference in New Issue
Block a user
Delete Branch "devin/1776881249-pr-j-redis-event-bus"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes gap-analysis v2 §7.3 + §10.3.
What
orchestrator/src/services/eventBusBroker.ts: per-process singleton bridging the in-processEventEmitteracross replicas over Redis pub/sub.eventBus.publish()hands every persisted record to the broker after the local emit; remote replicas re-emit inbound records on their own local emitter.instanceIdin the envelope.REDIS_URL. When unset the broker is strictly inert — single-process behaviour is preserved byte-for-byte.REDIS_URLunset path). Live Redis behaviour will be covered by the Testcontainers suite in PR Q.Why
Gap-analysis v2 §7.3 flagged the event bus as process-local: when the orchestrator scales to >1 replicas, SSE subscribers connected to replica A never see events originated on replica B. This PR closes that gap without changing the signature chain or persistence layer.
Verification
npx tsc --noEmitclean.npx jest83/83 green.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.