Questions tagged [vertxoptions]

Specifying options when creating a Vertx object When creating a Vertx object you can also specify options if the defaults aren’t right for you:

Vertx vertx = Vertx.vertx(new VertxOptions().setWorkerPoolSize(40));

The VertxOptions object has many settings and allows you to configure things like clustering, high availability, pool sizes and various other settings. The Javadoc describes all the settings in detail.

22 questions
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

extract the user principal from client certificate in vertx

I am using Vertx framework for my API and have enabled https on it successfully. For user authentication/authorization, I wan't to use client certificates i.e. who can access which APIs. The flow will: When a client makes a API hit, it presents…
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
1
vote
1 answer

Vertx Server Set Mutual Auth Requirement Per Route

I have a Vertx (3.9.x) based HTTP server in which I need to cater to two sets of request paths. First path always expects client certificates (ClientAuth.REQUIRED) and another for which client certificate is optional (ClientAuth.REQUEST or…
ramtech
  • 757
  • 6
  • 15
1
vote
2 answers

Vert.x httpClient - any idea how to limit the number of concurrent requests?

I need to send x HTTP client request. I want to send the requests in parallel, but no more than y at once. I will explain: The client can handle only y requests simultaneously. I need to send x request to the client, while x > y. I don't want to…
1
vote
1 answer

Vertx Http Webclient request hangs even though worker threads are available

I have a program where I have deployed a worker verticle (vertx version 3.6.3). From this, worker verticle, I am making an HTTP request using Vertx WebClient library. My vertx worker pool size is 20 and event loop pool size is 10. Right after, http…
1
vote
1 answer

Spring Boot with Vert.x embedded

We are just trying to analyse the benefits of using vert.x with sprint boot. Few of the advantages we could see compared to using vert.x only are: 1) Spring dependency injection framework support. 2) Properties file support 3) Spring's easy…
Punit Goel
  • 59
  • 1
  • 6
1
vote
0 answers

Vertx pool datasource dropwizard-metrics in-use count in negative

We have a vertx micro-service for customer authentication in production. We are using dropwizard-metrics to send metrics to graphite and using Graphana to plot the graph for time series data. The service communicates with MySQL db for transactions…
Lalit Rao
  • 551
  • 5
  • 22
1
vote
1 answer

In Vertx clustering, what's the difference between cluster host/port and public cluster host/port?

I'm working on an application that is required to be clustered on multiple machines, so I have to configure VertxOptions object by setting the cluster host and port on each node (machine), but I came across different methods for setting hosts and…
Mohamed Ibrahim Elsayed
  • 2,734
  • 3
  • 23
  • 43
0
votes
0 answers

Path header is prepended with scheme and authority when proxy option is set in HttpClient of Vertx

I have a vertx app which sends the request to a proxy. It uses HttpClient with setproxyoptions. Then form a request using request options to set the actual host, port, method and path. Vertx version: 4.4.0 public class MainVerticle extends…
0
votes
1 answer

Vert.x: how to test how many instances of a specific verticle are deployed?

I have a Verticle which prints something during startup package com.somepackage; import io.vertx.core.AbstractVerticle; import io.vertx.core.Promise; public class MyVerticle extends AbstractVerticle { @Override public void start(Promise
Lukas Weber
  • 455
  • 6
  • 13
0
votes
1 answer

Passing custom class object when deploying verticles

I have a custom client object that I am instantiating in the main() method and need to pass it to all the verticle instances that I am going to deploy. Here is what I have tried - 1.) private static Connection connection; . . . //method to…
0
votes
1 answer

What happens internally when we create multiple instances of standard and worker verticle?

Lets say we create a standard verticle and a worker verticle. Now we increase the instances to 2 each. So when lets say 10 users requests at a time what happened previously and what will happen now internally ?
0
votes
0 answers

Increasing timeout for vetx server

I am using a vertx server v3.7.0 as a gateway for my application.I have one service which takes more than 2 min to process data( I have few other services which takes more than 2 min ) . When I directly call that service using endpoint of the…
0
votes
2 answers

please suggest how to use vertx Timeout handler for vertx 3.7.1

i am trying this router.put(/api).handler(TimeoutHandler.create(100,404)); router.put(/api).blockingHandler(this::handlebusinesslogic); handlebusinesslogic{ Thread.sleep(1000); reponse.setstatuscode(200); reponse.end();} still, I see 200 ok…
1
2