cryostatio / cryostat

Secure JDK Flight Recorder management for containerized JVMs
https://cryostat.io
Other
8 stars 8 forks source link

chore(ws): simplify messaging server #424

Closed andrewazores closed 2 months ago

andrewazores commented 2 months ago

Welcome to Cryostat3! šŸ‘‹

Before contributing, make sure you have:

To recreate commits with GPG signature git fetch upstream && git rebase --force --gpg-sign upstream/main


Related to https://github.com/cryostatio/cryostat3/pull/423

Description of the change:

Simplifies the MessagingServer (WebSocket notifications) implementation to remove the explicit thread synchronization and message ordering.

Motivation for the change:

Using the EventBus is simpler and less error-prone than manually using synchronization features like blocking queues. Error handling is also improved in this PR, so if sending a notification to any connected client fails then this failure will be logged.

How to manually test:

  1. Run CRYOSTAT_IMAGE=quay.io... bash smoketest.bash...
  2. Click around the UI performing actions and ensure notifications are still received
andrewazores commented 2 months ago

/build_test

github-actions[bot] commented 2 months ago

Workflow started at 4/29/2024, 9:40:46 AM. View Actions Run.

github-actions[bot] commented 2 months ago

No GraphQL schema changes detected.

github-actions[bot] commented 2 months ago

No OpenAPI schema changes detected.

github-actions[bot] commented 2 months ago

CI build and push: All tests pass āœ… (JDK17) https://github.com/cryostatio/cryostat3/actions/runs/8879608190

andrewazores commented 2 months ago

/build_test

github-actions[bot] commented 2 months ago

Workflow started at 4/30/2024, 11:40:23 AM. View Actions Run.

github-actions[bot] commented 2 months ago

No OpenAPI schema changes detected.

github-actions[bot] commented 2 months ago

No GraphQL schema changes detected.

github-actions[bot] commented 2 months ago

CI build and push: All tests pass āœ… (JDK17) https://github.com/cryostatio/cryostat3/actions/runs/8897670371