Questions tagged [vertx-verticle]
175 questions
1
vote
0 answers
Vertx JDBC limiting number of queries
I am working on an microservice that is developed using Vertx framework. One of service receives 100s(400 average) of events per second from event bus and it is written to MSSQL DB. Queries are executed using JDBCPool and currently configured with…

java_dev
- 323
- 6
- 17
1
vote
1 answer
Vertx Webclient pool
I am using vertx WebClient to consume 3 different(host) APIs, below is how I use Webclient,
WebClientOptions options = new WebClientOptions();
options.setSsl(true);
options.setMaxPoolSize(50);
client = WebClient.create(vertx,…

vel
- 173
- 9
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
Vert.x - How to get POST Value passed between Verticles?
This the class that runs verticles :
public class RequestResponseExample {
public static void main(String[] args) throws InterruptedException {
Logger LOG = LoggerFactory.getLogger(RequestResponseExample.class);
final Vertx…

RABII SISSI
- 19
- 6
1
vote
1 answer
Correct way of sharing singleton clients across verticles in vetx
I have a vertx application where I deploy multiple instances of verticle A (HttpVerticle.java) and multiple instances of verticle B (AerospikeVerticle.java). The aerospike verticles need to share a single AerospikeClient. The HttpVerticle listens to…

Saurabh Dubey
- 11
- 2
1
vote
0 answers
Vert.x Spring Stream Video steps or Source code
I'm using Spring WebFlux. Here is My Service :
@Service
public class VideoStreamimpl implements IVideoStream {
private static final String FORMAT="classpath:videos/%s.mp4";
@Autowired
private ResourceLoader resourceLoader;
…

zakaria daoudi
- 13
- 2
- 8
1
vote
1 answer
Vertx in-built ClusterHealthCheck procedure blocking vertx thread
I am using ClusterHealthCheck procedure in health checks and I am seeing Vertx Thread blocked exception in logs. Do I need to execute health check as blocking code?
Below is the code I am using to create health checks,
Handler>…

vel
- 173
- 9
1
vote
1 answer
Vertx WebClient reponds slowly
I am new to vertx and RxJava. I am trying to implement a simple test program. However, I am not able to understand the dynamics of this program. Why do some requests take more than 10 seconds to respond?
Below is my sample Test application
public…

Tanveer Dayan
- 496
- 1
- 7
- 18
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
Vert.x SockJS Socket `.webUser()` is always null
I'm following Vert.x 4's SockJS documentation and noticed that each SockJSSocket inside my handler has a .webSession() and a .webUser(). However, both these fields are empty aside from the .webSession().id()
I have an AuthHandler registered on the…

foxtrotuniform6969
- 3,527
- 7
- 28
- 54
1
vote
0 answers
Vertx break out of a hung thread
So, the situation is like this: vert.x backend app has a worker Verticle instance that invokes a static method from Service class that in turn invoke a method from a 3rd Java lib that makes some requests and returns the result.
The problem arises in…

ph0enix
- 763
- 2
- 8
- 23
1
vote
1 answer
Vertx stop method not executed on service stop
When I stop the service the stop is not getting called but if try the same in test case where I deploy and undeploy verticle with deployment ID the stop method is executing.
EDIT:-
I am creating jar file (not a shadow Jar).
Below is build.gradle…

Ravat Tailor
- 1,193
- 3
- 20
- 44
1
vote
1 answer
Vertx WebClient shared vs single across multiple verticles?
I am using vert.x as an api gateway to route calls to downstream services.
As of now, I am using single web client instance which is shared across multiple verticles (injected through guice)
Does it make sense for each verticle to have it's own…

Nitish Goyal
- 97
- 10
1
vote
1 answer
Using Quarkus with bare Vertx: Server responds only to one connection
I tried to create a Quarkus App with bare Vertx. However, I can't curl multiple times. Only the first curl give me the correct response.
I tried to use Vertx without Quarkus (main method). Then everything works fine. Each curl gives the correct…

Nik
- 11
- 3
1
vote
1 answer
How to use vertx in java to call api 4 times and then proceed
vertx.setPeriodic(1000, id -> {
//api call
if (count == 4){
vertx.cancelTime(id);
}
});
Now the problem is I don't want a fix 1000 ms time, I just want to call the api 4 times and then go with final api response for further…

Vishal Rathore
- 137
- 1
- 13