I'd like to switch an existing Vert.x project (a Maven/Gradle module of a multi module project) to Quarkus.io. Do you have any documentation on this?
The sad thing is, that the use of Java 13 will prevent me from building native images. Otherwise I'm not using any Reflection or other stuff hopefully which wouldn't work. Hope the GraalVM catches up soon (also with Java 14, because the introduction of records will be great).
Kind regards
Johannes
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/5299da65-3217-460f-9078-ae5ff954a9c1%40googlegroups.com.
https://quarkus.io/guides/vertx
However, I don't want to use JAX-RS (I think that these annotations rather hurt readability). I'd like to use the router for instance as before:
Kind regards
Johannes
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/149bca59-35e4-48a2-b3e7-3687e65c329f%40googlegroups.com.
And can I still use the Vert.x config file and such things?
Ah, do they have a hello world example somewhere with the Context of where to put this method?
And can I still use the Vert.x config file and such things?
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/71c4e1e1-a51a-4314-8f51-3947f71ad856%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/CACiEr_R2bZ0QJszGWq3-GsJ%3DW_Lp8EWjp1bNgR8DnJhFqX8BAg%40mail.gmail.com.
```kotlin
override suspend fun start() {
val router = createRouter()
// Start an HTTP/2 server
val server = vertx.createHttpServer(
httpServerOptionsOf()
.setSsl(true)
.setUseAlpn(true)
.setPemKeyCertOptions(
PemKeyCertOptions().setKeyPath(location.resolve("key.pem").toString())
.setCertPath(
location.resolve("cert.pem").toString()
)
)
)
server.requestHandler { router.handle(it) }
.listenAwait(config.getInteger("https.port", 9443))
}
```
I don't want to use the Annotation stuff, and of course I like to use the non blocking Vert.x way _without_ having to execute every request on another thread from a thread pool.
Of course It's all open source, basically: https://github.com/sirixdb/sirix/blob/master/bundles/sirix-rest-api/src/main/kotlin/org/sirix/rest/SirixVerticle.kt
So I'm not sure if I gain a lot from using Quarkus, as I'm currently using Java 13 and Kotlin. But might be super interesting when the GraalVM catches up (and native inages) with the Java version. Right now it provides hot code replace plus compile time DI I think for SirixDB.
Hm, I guess it shouldn't be a problem, but I have to figure out how everything fits together. Otherwise I guess I won't switch. And currently I don't want to spend a lot of time. If it requires a few days to switch, I probably won't...
Kind regards
Johannes
Performance wise it's hard to tell that you will benefit anything as it has been said before more threads are involved, different event loops, etc. Yet quarkus defaults are different from vert.x core.
I think it makes sense, as I want to scale (replicate and partition resources) SirixDB with a distributed log as for instance Kafka or Pulsar/BookKeeper in the future.
And I think these new Frameworks as for instance Quarkus and Micronaut might make building native images and managing Kubernetes Clusters even easier in comparison with a bare Vert.x cluster.
Kind regards
Johannes
I really love the Vert.x APIs and I for instance don't get what JAX-RS for instance adds. I think the bare fluent router API is much nicer :-)
So, I've asked over here because I was of the impression that some of the Vert.x engineers also work on Quarkus and vice versa.
And I just watched some Quarkus videos over the Christmas holidays and thought it's a nice addition. Even though, if I don't need the other APIs and all the libraries they optionally have patched for native images I guess it would be cool if Vert.x would provide a patched version of Netty and thus perhaps also make it even easier to build native images :-)
So, I guess I'll not switch and simply use Dagger2 for DI (also for other modules in the project). Usually I still do it "by hand" with factories or well, sometimes with Spring at work, but I wouldn't want to include a Spring dependency and it also should be a compile time DI framework instead of a runtime framework.
Will Vert.x also provide better support for native images in the future? However, then I would wonder what Quarkus really adds. And why is another layer added on top of Vert.x at all for most of the stuff?
I really love the Vert.x APIs and I for instance don't get what JAX-RS for instance adds. I think the bare fluent router API is much nicer :-)
So, I've asked over here because I was of the impression that some of the Vert.x engineers also work on Quarkus and vice versa.
And I just watched some Quarkus videos over the Christmas holidays and thought it's a nice addition. Even though, if I don't need the other APIs and all the libraries they optionally have patched for native images I guess it would be cool if Vert.x would provide a patched version of Netty and thus perhaps also make it even easier to build native images :-)