Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event Hub #1012

Merged
merged 2 commits into from
Jan 11, 2024
Merged

Event Hub #1012

merged 2 commits into from
Jan 11, 2024

Conversation

MichalCz
Copy link
Sponsor 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
19 checks passed
@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.

None yet

4 participants