Optimize number of round-trip HTTP connections made by the client by having the submit handler return metadata about whether there are pending dump/deletion requests

For now, I'm still keeping the dedicated endpoints for those functionalities, but since most of the time there are no dump/deletion requests this should cut down the number of requests made by the client by 2/3.
This commit is contained in:
David Dworken
2023-09-21 11:35:24 -07:00
parent b05fb0f818
commit 1e43de689f
10 changed files with 156 additions and 63 deletions

View File

@ -184,5 +184,3 @@ func main() {
panic(err)
}
}
// TODO(optimization): Maybe optimize the endpoints a bit to reduce the number of round trips required?