Questions tagged [vertx-verticle]

175 questions
7
votes
1 answer

Where is the place to register a Jackson Codec in Vertx 4.0 using custom Object Mapper

I am trying to convert my Quarkus vertex sample to pure Vertx 4.0 and encountered a problem. In Quarkus, it is easy to customize the Jackson ObjectMapper to serialize or deserialize the HTTP messages. @ApplicationScoped public class…
Hantsy
  • 8,006
  • 7
  • 64
  • 109
5
votes
1 answer

Vertx clustered eventbus not removing old node on kubernetes rolling deployment

I have two vertx micro services running in cluster and communicate with each other using a headless service(link) in on premise cloud. Whenever I do a rolling deployment I am facing connectivity issue within services. When I analysed the log I can…
vel
  • 173
  • 9
5
votes
1 answer

How to use Hibernate as non-blocking ORM with Vert.x

I currently have a Vert.x codebase. I was using Golang, but Golang kinda sucks and doesn't have a good ORM. But apparently, Vert.x doesn't have a good ORM either, primarily because Vert.x is non-blocking and most ORMs for Java were based on blocking…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
5
votes
2 answers

How to change http port of spring mockmvc

I'm developing a simple api with three endpoints using vertx. That api has some predefined tests that I cannot modify and I need to pass, which use: @Autowired private GenericWebApplicationContext webApplicationContext; private MockMvc…
Gerardo
  • 175
  • 1
  • 2
  • 9
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
2 answers

Can not find io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider

I am coding with Vertx, when I run Junit test under my laptop (MacOs), all unit tests failed, in fact, when these unit tests are run successfully under Linux. This is my Java 11 version: java version "11.0.12" 2021-07-20 IBM Semeru Runtime Certified…
Joe
  • 623
  • 7
  • 16
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…
2
votes
1 answer

What are Vert.x EventBus messages ordering guarantees?

Documention says: Vert.x will deliver messages to any particular handler in the same order they were sent from any particular sender. What is meant by a handler or sender: verticle, context, particular callback or something else? Will all messages…
Nolequen
  • 3,032
  • 6
  • 36
  • 55
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

Vertx - Database update query takes few minutes

I have a very simple update database operation in my Java Vertx application but for some reason it takes araround 3 minutes. I have attached the console output showing the time. Can somebody please help me to debug why is it so. 2022-07-19…
ZAJ
  • 793
  • 3
  • 23
  • 50
2
votes
1 answer

Why is Vert.x worker verticle called from multiple threads concurrently?

my vertx (4.0.2) application written in Java (11) uses some data-heavy verticles that cause latency spikes because the eventloop gets blocked by them for a moment. For this reason i wanted to deploy these verticles as worker verticles, so that the…
2
votes
2 answers

Vertx executeBatch not returning all rows

I am using vertx JDBC client pool and trying to insert multiple records to table. The insertion is done successfully but the inserted records are not returned instead only first record is returned. Code to insert multiple record using…
vel
  • 173
  • 9
2
votes
1 answer

Does the http server run on verticle and own event loop?

I am trying to understand https://vertx.io/ Verticle system and the event loop thread. Consider the following code: public class MyVerticle extends AbstractVerticle { public void start() { vertx.createHttpServer().requestHandler(req -> { …
softshipper
  • 32,463
  • 51
  • 192
  • 400
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
1 answer

Vertx Web: How to split and organize routes across multiple files?

So far I'm really loving Vertx. The documentation is great, and the cross-language support is amazing. However, the examples and documentation for my specific problem all seem to be out of date. I guess the API has changed a bit since 3.4.x (I'm…
foxtrotuniform6969
  • 3,527
  • 7
  • 28
  • 54
1
2 3
11 12