Questions tagged [vertx-httpclient]

100 questions
4
votes
1 answer

Vertx-java-HttpClient: How to derive maxPoolSize and maxWaitQueueSize values and their impact

I have created a one java backend service in vertx java. I used httpClient(io.vertx.core.http.HttpClient) with connection pooling enabled to connect to external services. I am excepting throughput of 50. For each request to my service I need to…
Vaibhav Raut
  • 472
  • 3
  • 12
3
votes
1 answer

How to send response before actions in quarkus/Vert.X

Following similar question in spring. I want to be able to get in the router the response. and do a response flush, so I could continue work on the server without extending the RTT meaning, do something like the answer in spring: public void…
ohad edelstain
  • 1,425
  • 2
  • 14
  • 22
3
votes
0 answers

VertX eventbus.publish when running multiple instances

I'm beginning to realise VertX does its event bus publishing (eventbus.publish) fanning out to all instances of all verticle subscribed. But if I use eventbus.send for a specific address, that message gets delivered to a single instance of the…
3
votes
2 answers

while doing Json.encodePrettily(object) in vertx null values are also getting included

while doing Json.encodePrettily(object) in vertx null values are also getting included. so need to know how we can configure it to avoid null values in response.
Kishore Tulsiani
  • 1,106
  • 13
  • 29
3
votes
2 answers

Unit testing Vertx - java.util.concurrent.TimeoutException

I am trying to unit test a http call from vertx WebClient uing VertxUnitRunner and RXified version of vertx. The problem is my unit test always fail with a timeout exception. Is there a different way to unit test WebClient http calls? Below is my…
Rakesh
  • 4,264
  • 4
  • 32
  • 58
3
votes
4 answers

Vertx HttpClient getNow not working

I have problem with vertx HttpClient. Here's code which shows that tests GET using vertx and plain java. Vertx vertx = Vertx.vertx(); HttpClientOptions options = new HttpClientOptions() .setTrustAll(true) …
Wojciech Kumoń
  • 325
  • 4
  • 13
2
votes
0 answers

Vertx - threads are stuck while sending response back to client

I'm using vertx-4.2.6 to build a proxy service which takes requests from clients (for ex: browser, standalone apps etc), invoke a single thirdparty server, gets the response and send the same response back to client who initiated the request. In…
2
votes
1 answer

Create a http request with a uri in Case sensitive mode

I have a https request which its uri begins with capital letter. I have tested it in postman and i have gotten response; But in my code by vertx (io.vertx.core), I can not get desired response response. It seems that destination server reject me. It…
2
votes
1 answer

In vertx, Is there a way I can just change header and redirect to another server

I am new to Vertx, I am writing a proxy server, which will take request, update header, and send to another server. On receiving response, send the complete response as it is to client. In vertx, Is there a way I do this straign forward or I need to…
2
votes
1 answer

Vert Http Client max connection pooling? Is this pool per endpoint or in total?

I am using vertx web client (3.8.5) for api-gateway and setting setMaxPoolSize to 20. Is this limit per endpoint or in total across all endpoints? I am deploying my application with 36 verticles and 1 web client per verticle, which makes 36 web…
2
votes
2 answers

JUnit test for testing my API client is not working, "Error: Test Engine with ID 'junit-jupiter' failed to execute test"

I am new at testing with Junit and using mockito. I have created a class for my client which is supposed to send requests to an API. I have also created a class to write a simple test. When i run the test i get errors in the console and i do not…
monkey123
  • 183
  • 1
  • 3
  • 11
2
votes
1 answer

Vert.x HTTP Client creates more connections than the MaxPoolSize

I have 8 verticle in my application. Each Verticle is on a separate thread. Each Verticle has an WebClient ( Vert.x HTTP client) I am setting the MaxPoolSize to 10. WebClientOptions webClientOptions = new WebClientOptions()…
Michael P
  • 2,017
  • 3
  • 25
  • 33
2
votes
2 answers

Observable ZIP operator hangs while using vertx http client

What I do: I am using vertx rx http client to perform a large number of HTTP requests. in this specific case I am calling "method A" which returns a list of IDs. to receive all the IDs I need to call method A several times to get the next batch of…
2
votes
2 answers

Vertx POST HttpClientRequest with body parameter

I have to implement a Vertx POST request. Via Postman, the request is done as shown in the following picture: The tricky part is that the server expects the key "upgrade_file" for the body. I could not find out how to do that with Vertx. This is…
René Winkler
  • 6,508
  • 7
  • 42
  • 69
2
votes
1 answer

Vertx HttpClientRequest - Unable to catch timeout exception

I have been unable to catch time out exception that happens in my vertx HttpClientRequest. I have enclosed my connection and request creation code in try-catch block. Also I have added exceptionHandler and endHandler. But none of them gets fired…
saikamesh
  • 4,569
  • 11
  • 53
  • 93
1
2 3 4 5 6 7