



With Quarkus, you can annotate methods to mark them as routes.

Vert.x is full reactive and provides the concept of routes. We can create a "controller" with the following code: MarvelController characters() = Response.accepted()īecause the developers of Quarkus also worked on Vert.x, the former also offers a plugin that integrates the latter. As such, the most straightforward path to creating controllers is JAX-RS. However, it deviates from the specification: it lists both limitations and non-standard features.įor example, with Quarkus, you can skip the annotation on a producer method if it's already annotated with one of the scope annotations, e.g., Here's the code to create the message digest: class MarvelFactory digest(): MessageDigest = MessageDigest.getInstance("MD5")Ī lot of Quarkus relies on Jakarta EE specifications. A Maven plugin: I like that no external dependencies are necessary beyond one's build tool of choice.Note that the menu displays Gradle-related commands instead if you choose Gradle as the build tool. Copying the Maven BOM dependency snippet.Copying the Maven POM dependency snippet.Copying the command to add the dependency via Maven.Copying the command to add the dependency via quarkus.Every dependency has a detailed contextual menu that allows: Quarkus offers a definite improvement over its competitors. Just as Spring Boot and Micronaut, Quarkus provides options to create new projects: In this post, I'll focus on Quarkus:Ī Kubernetes Native Java stack tailored for OpenJDK HotSpot and GraalVM, crafted from the best of breed Java libraries and standards. So far, we have looked at how well Spring Boot and Micronaut integrate GraalVM native image extension. Nicolas is a developer advocate with 15+ years experience consulting for many different customers, in a wide range of contexts (such as telecoms, banking, insurances, large retail and public sector).
