Skip to content

Conversation

@MichalCz
Copy link
Member

@MichalCz MichalCz commented Jan 8, 2024

What?

This introduces an event bus that allows instances to send events to each other within a single hub. It also exposes a hub level API.

Why?

This adds a communication layer between instances that works fairly quickly and allows sequence implementors to broadcast messages between
running instances.

Usage:

In a sequence you can use:

  • Seq1/index.js: this.emit("myEvent", "my string of event data")
  • Seq2/index.js: this.on("myEvent", () => doSomething())

Clickup Task:

How it works:

  • CSI controller has a tiny change to expose events to host
  • Host handles most of the forwarding
  • The BDD tests are a good starting point

Review checks:

These aspects need to be checked by the reviewer:

  • Verify and confirm operation (please post a screenshot)
  • All STH tests pass
  • All Scramjet Cloud Platform tests pass
  • Documentation is updated or no changes

@alicja-gruzdz alicja-gruzdz marked this pull request as ready for review January 9, 2024 16:35
@a-tylenda a-tylenda merged commit 540d7c0 into devel Jan 11, 2024
@a-tylenda a-tylenda deleted the feat/event-hub-clean branch January 11, 2024 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants