Skip to content

feat(gateway): add GatewayService v1 for module-to-module communication#68

Open
xaviave wants to merge 1 commit into
devfrom
feat/task_service
Open

feat(gateway): add GatewayService v1 for module-to-module communication#68
xaviave wants to merge 1 commit into
devfrom
feat/task_service

Conversation

@xaviave
Copy link
Copy Markdown
Contributor

@xaviave xaviave commented Apr 13, 2026

Introduces a central broker that fully isolates modules — they only
talk to the Gateway + Redis, never to each other directly.

RPCs:

  • StartStream: Module B requests execution of Module A (ACK + task_id)
  • ProduceStream: BiDi for Module A to emit output / receive input, persisted to Redis Streams
  • ConsumeStream: BiDi for Module B to read Module A's output and send data back through the Gateway
  • SendSignal: out-of-band control signals (cancel, pause) via Redis pub/sub

Gateway injects ModuleStartInfo as the first entry of the Redis
output stream.

  Introduces a central broker that fully isolates modules — they only
  talk to the Gateway + Redis, never to each other directly.

  RPCs:
  - StartStream: Module B requests execution of Module A (ACK + task_id)
  - ProduceStream: BiDi for Module A to emit output / receive input,
    persisted to Redis Streams
  - ConsumeStream: BiDi for Module B to read Module A's output and send
    data back through the Gateway
  - SendSignal: out-of-band control signals (cancel, pause) via Redis
    pub/sub

  Gateway injects ModuleStartInfo as the first entry of the Redis
  output stream.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant