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

In BonsaiProver, reduce latency from workflow completion to returning the result #1759

Open
nategraf opened this issue Apr 30, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@nategraf
Copy link
Contributor

Feature

Reduce the latency overhead of polling Bonsai for workflow status

Motivation

Currently, the BonsaiProver implements polling with a 5 sec interval to check the status of the workflow. Especially as our proving times improve, and small proofs can complete in less than 5 seconds of proving time, this adds latency to the user experience.

std::thread::sleep(Duration::from_secs(5));

Implementation

We likely do not want to simply increase the polling frequency, as that will add a wasteful increase in load the API servers. Implementing long polling, or web sockets would allow us to improve upon this without additional load.

@nategraf nategraf added the enhancement New feature or request label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant