Use this tag for version specific questions about Eclipse Vert.x 4 - the event driven toolkit that runs on the JVM. When using this tag also include the more generic [vert.x] tag where possible.
Questions tagged [vertx4]
17 questions
7
votes
2 answers
Vert.x redirect http to https
We have re-written our webservices with Vert.x 4 and we're more than satisfied. Before putting them in production we want to secure them and we're trying to enable https. This is the main verticle:
public class MainVerticle extends AbstractVerticle…

Alberto Miola
- 4,643
- 8
- 35
- 49
4
votes
2 answers
What are Vert.x verticle "instances", and what is their relation to threads?
When deploying a verticle in a Vert.x application, the documentation appears to be painstakingly unclear about what a verticle "instance" actually is, and how it relates to threads and thread pools. In fact, it's rather unclear about anything…

RobinJ
- 5,022
- 7
- 32
- 61
3
votes
1 answer
Why Vert.x codegen fails to create rx-fied classes?
For some reason my 4.0.2 based code doesn't produce rx-fied service versions with codegen.
Both VertxEBProxy and VertxProxyHandler classes are created as expected though.
Here is a demo project: https://github.com/ashertarno/playground
Please see…

atarno
- 329
- 1
- 3
- 14
1
vote
0 answers
How to set write queue max size of messageProducer in Vertx 4.x
We want to update the Vertx from 3.x to 4.x, but we find the MessageProducer does not extend WriteStream. We want to set write queue max size of messageProducer and use the writeQueueFull() function in order to monitor our queue size, just like…

zxz
- 11
- 1
1
vote
1 answer
Vertx event bus slow consuming issue
We have a non clustered vertx application, and we use the event bus to internally communicate between verticles.
Verticle A consumes from the bus, performs a HTTP request, and sends the response back through the bus.
Verticle B just request to…

Diego Manuel Mateos Gómez
- 108
- 1
- 7
1
vote
1 answer
Multiple or single instance for clustered vertx
I am developing microservices using vertx4 and each service is composed of multiple verticles and all are deployed as clustered(hazelcast) verticle using below code.
Vertx.clusteredVertx(options.setHAEnabled(isHa), (vertx) -> {
…

vel
- 173
- 9
1
vote
1 answer
Vertx user authorization principal or attributes
I am using the Vertx framework on my API for authorization with JWT tokens. After the user is authorized and the token is decrypted I want to access the contents of the token, particularly a "userId" field within the token.
Originally I was…

Ryan Peterson
- 118
- 1
- 7
0
votes
1 answer
Vertx Web routers are "losing" request parameters
I am running a test Vertx application that is supposed to receive a POST request and process some JSON data. This is using Vertx V4.3.8.
The JSON data is being passed through the following Javascript code:
var countWords = function(toSend) {
var…

Factor Three
- 2,094
- 5
- 35
- 51
0
votes
0 answers
Vertx connection pooling issue, high value of vertx_sql_queue_pending
I am very new to Vertx, so please excuse me if this is a very basic question. I am facing issues with Vertx connection pool, I am using io.vertx:vertx-pg-client with Vertx version 4.2.7.
After sometime, application is not able to get a connection…

Ravi Prakash
- 11
- 2
0
votes
1 answer
NoClassDefFoundError error with JDBCPool in vertx 4.3.2
I am getting error with new JDBCClient API.
java.lang.NoClassDefFoundError: io/agroal/api/configuration/supplier/AgroalDataSourceConfigurationSupplier
Created project from starter, included jdbc-client and H2 database API.
JDBCPool pool =…

Ravat Tailor
- 1,193
- 3
- 20
- 44
0
votes
2 answers
Vertx Web Resource Not Found
In one of the projects that I'm working on I register routes onto the Router dynamically like below.
vertx.eventBus().consumer("REGISTER_ROUTE", handler -> {
JsonObject message = (JsonObject) handler.body();
HttpMethod method =…

Hegdekar
- 1,147
- 1
- 13
- 16
0
votes
1 answer
Vert.x JDBC client: Could not load the required implementation
I'm trying to connect to a database with the vert.x JDBC client:
import io.vertx.core.AbstractVerticle;
import io.vertx.core.*;
import io.vertx.jdbcclient.JDBCConnectOptions;
import io.vertx.jdbcclient.JDBCPool;
import io.vertx.sqlclient.*;
public…

waldelb
- 705
- 6
- 11
0
votes
0 answers
vertx kafka client consume messages and do a REST api call sequentially
protected void consume(KafkaReadStream consumer) {
consumer.handler(record -> {
// call a REST API to write a value to DB
doRestApi(record); // such as client.postAbs(...).send(...)
});
…

niaomingjian
- 3,472
- 8
- 43
- 78
0
votes
1 answer
Request Parameters validations in vertx 4.0.3
I was using vertx-Web-api-contracts in vertx 3.0 to validate my query parameters and form parameters using
HTTPRequestValidationHandler and ParameterTypeValidator
code sample :
private final ParameterTypeValidator fileIdValueValidator = new…

adhikari
- 112
- 2
- 13
0
votes
1 answer
ScheduledExecutorService.scheduleWithFixedDelay usage in vertx
I would like schedule a task that gets executed periodically after the completion of task. Previously I used ScheduledExecutorService.scheduleWithFixedDelay but now in vertx I am thinking whether it may cause any issue since vertx already uses…

vel
- 173
- 9