You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, there !
I found out that rest-client-reactive has limit for amount of simultaneously outgoing requests to 20, so next requests accomplish only after some of the first finished.
That's feature or bug? Are there any configuration properties to extend this limit?
Expected behavior
No limit by default
Actual behavior
Limit to 20 requests
How to Reproduce?
Api.java
@Path("/")
public class Api {
static final Logger LOG = Logger.getLogger(Api.class);
final AtomicLong pingCounter;
final Service service;
public Api(@RestClient Service service) {
this.service = service;
pingCounter = new AtomicLong();
}
@POST
@Path("/ping")
public Response ping() throws InterruptedException {
long number = pingCounter.incrementAndGet();
LOG.debugf("Ping request, %d", number);
Thread.sleep(5000);
LOG.debugf("Pong response, %d", number);
return Response.ok("pong " + number).build();
}
@POST
@Path("/load/{requests}")
public Uni<Response> load(int requests) {
LOG.debugf("Load request, requests=%d", requests);
List<Uni<String>> unis = new ArrayList<>();
for (int i = 0; i < requests; i++) {
unis.add(service.ping());
}
return Uni.combine().all().unis(unis)
.combinedWith(listOfResponse -> Response.ok(listOfResponse.toString()).build());
}
}
Service.java
@RegisterRestClient
public interface Service {
@POST
@Path("/ping")
Uni<String> ping();
}
Describe the bug
Hi, there !
I found out that rest-client-reactive has limit for amount of simultaneously outgoing requests to 20, so next requests accomplish only after some of the first finished.
That's feature or bug? Are there any configuration properties to extend this limit?
Expected behavior
No limit by default
Actual behavior
Limit to 20 requests
How to Reproduce?
Api.java
Service.java
application.yml
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
The text was updated successfully, but these errors were encountered: