Questions tagged [quarkus]

A Kubernetes native Java stack tailored for GraalVM & OpenJDK HotSpot, crafted from the best of breed Java libraries and standards

Quarkus makes creating cloud-native container-first Java applications a productive and efficient experience.

Combine both the familiar imperative code and the non-blocking reactive style when developing applications.

Quarkus tailors your application for GraalVM and HotSpot. Amazingly fast boot time, incredibly low RSS memory (not just heap size!) offering near instant scale up and high density memory utilization in container orchestration platforms like Kubernetes. We use a technique we call compile time boot.

./my-native-java-rest-app

Quarkus started in 0.008s

A cohesive platform for optimized developer joy:

  • Unified configuration
  • Zero configuration, live reload in the blink of an eye
  • Streamlined code for the 80% common usages, flexible for the 20%
  • No hassle native executable generation

Quarkus brings a cohesive, fun to use full-stack framework by leveraging best of breed libraries you love and use wired on a standard backbone.

Useful links:

3982 questions
6
votes
3 answers

Best way to close async resteasy client call

I have the following code: var threadsWaiter = new CountDownLatch(customers.size()); for(var c: List customers) { sendSms(c.phoneNr, threadsWaiter) } threadsWaiter.await(); public void sendSms(String phoneNr, CountDownLatch…
Serkan
  • 639
  • 5
  • 14
6
votes
2 answers

quarkus-arc Unsatisfied dependency problem

This is my resource class: with repository injection. @Path("/posts") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public class PostsResource { @Context UriInfo uriInfo; @Inject PostRepository…
user6850907
6
votes
2 answers

Quarkus & Microprofile : Is there a better way to use a property from application.properties into @ClientHeaderParam?

I'm trying to build a simple app that calls an API with quarkus-rest-client. I have to inject an API Key as a header which is the same for all resources of the API. So I would like to put the value of this API Key (that depends on the environment…
Tatute
  • 61
  • 1
  • 6
6
votes
2 answers

Is Hibernate ORM compatible with GraalVM native image compilation?

The native image compiler in the GraalVM project has, according to the docs, some limitations with dynamic proxies. Since Hibernate makes extensive use of proxies, can it work normally in a project that is ahead-of-time compiled? The Quarkus project…
David
  • 962
  • 2
  • 10
  • 29
6
votes
2 answers

How to take advantage of Quarkus in existing spring boot applications

How to take advantage of Quarkus in existing spring boot microservices. I could not find documentation on how to use it for spring framework applications.
Mallesh
  • 147
  • 1
  • 7
6
votes
3 answers

How can I set the base path for my RESTEasy resources in Quarkus?

I would like to set the base path under which all my RESTEasy resources would fall, without having to include a class that extends javax.ws.rs.core.Application. Basically I would like to get rid of: import javax.ws.rs.ApplicationPath; import…
geoand
  • 60,071
  • 24
  • 172
  • 190
6
votes
3 answers

What is the difference between Quarkus and Thorntail?

Could you please provide more detailed difference between Quarkus and Thorntail? This would help when considering between these two when building a new "Java cloud native app".
Libor Krzyzanek
  • 131
  • 1
  • 9
5
votes
1 answer

Quarkus: Copy resources when running quarkus:dev goal

I have a webapp that I need to copy the Java files into my output Quarkus application because I display the code snippets as help in the web pages. Currently the only way I could figure it out is by always calling compile when running mvn compile…
Melloware
  • 10,435
  • 2
  • 32
  • 62
5
votes
1 answer

quarkus.http.enable-compression in src/main/resources/application.properties ignored since 2.9.0.Final?

I have quarkus.http.enable-compression=true in my src/main/resources/application.properties file, and with Quarkus 2.8.3.Final it works as expected. i.e. HTTP requests with an Accept-Encoding: gzip header receive a gzip'd response body. But when I…
5
votes
2 answers

How to access resources in a Quarkus native image?

I started playing with quarkus and graalvm. I added files (txt and jpg) to resources in the project (src/main/resources/). To be sure that I have access to this file in controller I display size of it: URL url =…
tostao
  • 2,803
  • 4
  • 38
  • 61
5
votes
0 answers

How to customize the 401 in quarkus oidc?

I want to customize the 401/403 status code when access token is invalid in headers. I have create an exception mapper given below : import io.quarkus.security.AuthenticationFailedException; import…
5
votes
1 answer

Allow quarkus-oidc to customize response body of 403

I want to customize the response body of 403/401 in quarkus oidc application. I have tried many things to implement that but not able to do so. Same can be achieved in Spring boot easily.
Utesting
  • 121
  • 2
5
votes
1 answer

Using QuarkusTestExtension in combination with another JUnit extension leads to exception

Is it possible to use the QuarkusTestExtension from Quarkus in combination with the SoftAssertionsExtension from AssertJ? I would like to run a Quarkus test which implicitly calls softAssertions.assertAll() after a test which uses AssertJ's soft…
Matthias T
  • 1,230
  • 2
  • 10
  • 24
5
votes
2 answers

How to test pollling pattern in Mutiny on Quarkus?

I would like to test a simple polling example from https://smallrye.io/smallrye-mutiny/guides/polling and poll the data of a service into a Kafka stream. This is a simplified example of a class I want to test: @ApplicationScoped public class…
Schallabajzer
  • 121
  • 1
  • 2
  • 7
5
votes
1 answer

Performance Difference between spring reactive and quarkus reactive Fundamentals

Low memory and high performance native containers are the future. Java with traditional frameworks has been difficult to work with to achieve lower level footprint with high performance like golang/rust. But recent innovation in java that is…
Jay Ghiya
  • 424
  • 5
  • 16