Handling BackPressure of Rest Requests #26335
Unanswered
jaiprasad266
asked this question in
Q&A
Replies: 1 comment
-
I have the same question. I went through this url. But still not yet got a solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi ,
We have a quarkus app which expose a rest endpoint to fetch data from cosmos db.
Below is how the endpoint looks.
The dao layer executes the sql in a reactive style and returns a Multi.
How to handle a backpressure when there is burst of incoming rest requests in this scenario ?
@path("/getData")
@get
@produces(MediaType.APPLICATION_JSON)
@consumes(MediaType.APPLICATION_JSON)
public Multi getData(RequestBody request) throws IOException {
Multi data = dataService.findData(request);
return data;
}
Beta Was this translation helpful? Give feedback.
All reactions