Skip to content

Tag: vert.x

quarkus @ObservesAsync invoke Uni

What’s the best way to invoke Uni in an async observer? It would be great if I could just return Uni but unfortunately that doesn’t work. Answer As mentioned by @ladicek, you can: use a synchronous observer and block until termination use a synchronous observer and “trigger” the async …

HttpServer Request get date range from query string

I am new to Java and Vertx and I have a query string with the following format: Here I have this date_1 parameter which is within a certain range. I have been using HttpServerRequest class to extract simple parameters like integers but not sure how to proceed with these kind of range parameters. With the simp…

Making a static final Json object in Java

I am currently building a Java Vertx application that executes a task periodically. This application is executes a certain logic and is supposed to return a value in a Json format. The logic seems to work and I don’t have a problem getting the desired value in the log, but I have trouble returning that …

Method to get and post Json object in Vertx

I’m new to Java and to backend development, and I really could use some help. I am currently using Vert.x to develop a server that takes in a Json request that tells this server which file to analyze, and the server analyzes the file and gives a response in a Json format. I have created an ImageRecognit…

Batch insert entities to DB (Quarkus, Hibernate)

First off: I’m not used to Quarkus or Hibernate (I’m pretty much all .net) Problem: My service receives a list of ~10k (Would guess thats the most common number). This comes via a resource endpoint, and it takes +10s for it to complete, Far to long. And the service is unresponsive. The statusDao.C…