All Questions
Tagged with event-loop vert.x
18 questions
0
votes
1
answer
54
views
Vertx single thread become slower when client call many concurrently of APIs to vertx service
I expect your ideas so much for my situation.
I built a RestfulAPI using vertx 4.5.7, vertx-pg-client same version.
When starting I configured pool like this:
final PgConnectOptions connectOptions = ...
0
votes
0
answers
56
views
does deploying multiple instances of a verticle for creating a httpserver use multiple threading for handling requests?
I want my vertx application to use multiple threads ( multiple event loops ) to take advantage of multiple cores and handles requests more optimally. Hence, I have deployed multiple instances of the ...
1
vote
1
answer
85
views
Vert.x aerospike client to use context-bound event loop
Standard java aerospike client's methods have overloads allowing to provide EventLoop as an argument. When running in vert.x that client is not aware of context-bounded event loop and just fallbacks ...
0
votes
1
answer
582
views
How to vertically scale Vert.x without Verticals?
According the the Vert.x docs - deploying using Verticles is optional. If this is the case - how can I deploy say an HTTP server onto multiple event loops? Here's what I tried - also read the api docs ...
0
votes
1
answer
907
views
Vertx's netty event loop using only single thread
It seems that a verticle is only ever executed by a single thread and always by the same thread.
But Vert.x is capable of using all the CPUs in the machine by creating one thread per CPU.
Each thread ...
2
votes
1
answer
451
views
How can I share the same Event Loop from VertX in Lettuce-io
Is there a way to share the same EventLoop from VertX when creating a Lettuce-io Redis Client?
0
votes
0
answers
236
views
Vert.x - gets stuck after some idle time
Below is my code on Vertx. Using SQLclient PreparedQuery to get data from Database, but after 30 mins of idle time it gets stuck.
Vert.x version - 3.8.0
//initialized one on application startup
...
0
votes
1
answer
653
views
Vert.x IO Blocking operation performance
I'm trying to run a blocking code, like Thread.sleep(100) to simulate a heavy database, with a Vert.x 1000 Worker pool size.
val options = DeploymentOptions().setWorker(true).setWorkerPoolSize(1000);
...
0
votes
1
answer
706
views
Vert.x EventLoop Thread Block Inet6AddressImpl.lookupAllHostAddr
I'm experiencing very weird thread block of more than 4 second when searching for dns entry (?) while initiating kafka producer, exception:
2019-02-11 10:00:33,982 WARN [vertx-blocked-thread-checker] ...
1
vote
0
answers
411
views
Mongo client blocking event loop in vertx
We are using vertx mongo client in our application we are seeing lot of WARNINGS in our log with the following trace.
WARNING: Thread Thread[vert.x-eventloop-thread-1,5,main] has been blocked for ...
0
votes
1
answer
265
views
Vertx: Using AbstractVerticle Context to pass around objects
We have been using the Context object to in a long chain of async execution.
e.g.:
private void checkVehicle(final JsonObject cmd,
final RedisFleetStorage storage,
...
1
vote
1
answer
73
views
Class without Verticle implement and event loop
I'm not sure to understand correctly the verticles principle. If my main class extends AbstractVerticle (implements the Verticle interface) and this class create instances of other class (by example, ...
7
votes
3
answers
7k
views
Vertx web-server uses only one event-loop thread while 16 are available
I use Vert.x v3.5.1.
There is the simplest sample of code:
vertx.createHttpServer()
.requestHandler(anyRouter::accept)
.listen(8080);
In my case the event ...
3
votes
2
answers
8k
views
How vertx handlers work?
For the last week I read documentation about vertx. What i don't get it's how vertx handlers are work? For example
public class Client extends AbstractVerticle{
@Override
public void start() ...
1
vote
1
answer
686
views
Connection pool based web server with async support vs Event Loop based web server
I'm learning about Vertx and it's ecosysteme, firstly i learned about Event loop, and the concept is really nice to me.
But since Servlet 3.1 we can use async support in JAVA based servers.
I'm ...
2
votes
2
answers
5k
views
Vertx executeBlocking use event loop instead of worker thread
I came from programming ideology of one request = one thread and now I want to understand the concept of event loop using Vertx. According to docs if we use a blocking operation we should pass it to ...
2
votes
2
answers
2k
views
Why does Vert.x create a new event loop for an http server?
I have a very simple Vert.x application that exposes a ping endpoint:
LauncherVerticle.java
public class LauncherVerticle extends AbstractVerticle {
@Override
public void start(Future<...
1
vote
1
answer
154
views
vertx.io java + twitter4j - event loop integration
I'm trying to integrate twitter4j with vertx event loop and I don't know if I'm doing it the right way.
I'm new to vertx, although I'm a Node.js developer, so I'm familiar with the event loop/single ...