Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: Run all controller requests in the background
Rather than launching three dedicated tasks, each to handle a completely distinct subset of controller requests (but implemented using the same pattern match!) it's way simpler to just spawn a new tokio task for each controller request - we have basically everything in place to do this safely, including RwLocks around all the stuff that matters, a *channel* rather than a return value to send our response, etc. This significantly simplifies the implementation of the controller request handling code, and also makes all controller requests as non-blocking and concurrent as possible! Refs: ENG-3058 Change-Id: Id4f624d7826300a8062079575c8c194a312ec53c Reviewed-on: https://gerrit.readyset.name/c/readyset/+/4956 Tested-by: Buildkite CI Reviewed-by: Luke Osborne <luke.o@readyset.io>
- Loading branch information
1 parent
8869ae6
commit 120fb30
Showing
2 changed files
with
13 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters