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

Dedicated queue version #37

Open
flying-sheep opened this issue Apr 15, 2024 · 0 comments
Open

Dedicated queue version #37

flying-sheep opened this issue Apr 15, 2024 · 0 comments

Comments

@flying-sheep
Copy link
Member

Switch to Python for more maintainers.

Separate queue server and benchmark runner.

Queue server

Two parts: webhook server and persistent queue.

  1. webhook server accepts webhook request
  2. transforms certain ones into event on persistent queue
  3. from time to time checks for updates and potentially apply them¹

in order for the updates to be applied without losing requests, maybe put a load balancer or something like that in front of the webhook server

Benchmark runner

The benchmark runner should be a simple loop that executes the following steps

  1. check for and potentially apply update¹ for step 3.
  2. poll queue server. if event is available, execute step 3, else sleep then goto 1
  3. handle event using a subprocess that potentially got updated in step 1
  4. goto 1

¹E.g. we could use something like TUF / TUFup to check for and download updates

@flying-sheep flying-sheep added this to the 2. Dedicated queue milestone Apr 15, 2024
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

No branches or pull requests

1 participant