Vert.x-like router library for servlet containers

22 views
Skip to first unread message

Gordan Krešić

unread,
May 18, 2025, 6:33:25 AMMay 18
to vert.x
Hi all,

I'm wondering if anyone would know of any REST routing library that would resemble Vert.x Web Router-like design, but based on the servlet architecture? I'm looking just for the router part, not the whole (micro)framework, something I could attach to an existing Jetty/Tomcat.

-gkresic.

hantsy bai

unread,
May 19, 2025, 12:34:18 AMMay 19
to ve...@googlegroups.com
Vertx used Netty as runtime I think.
---

Regards,

Hantsy Bai

Self-employed consultant, fullstack developer, agile coach, freelancer/remote worker

GitHub: https://github.com/hantsy

Twitter: https://twitter.com/@hantsy

Medium: https://medium.com/@hantsy


--
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, visit https://groups.google.com/d/msgid/vertx/94e4348c-1b10-4842-aefa-7313535a2f8a%40steatoda.com.

Gordan Krešić

unread,
May 19, 2025, 3:07:33 AMMay 19
to ve...@googlegroups.com
On 19. 05. 2025. 06:33, hantsy bai wrote:
> Vertx used Netty as runtime I think.

Hi Hantsy,

I'm aware of Vert.x's Netty roots, but that's the "server" part.

What I'm interested in is "routing" part (mapping HTTP methods and paths to Java methods). So, in essence, `Router`s, `Handler`s and all that.

Javalin (https://javalin.io/) and Helidon (https://helidon.io/) are offering something similar, but only bundled with a preconfigured server (Javalin comes with built-in Jetty and Helidon is built around Netty). What I'm looking for is something I could attach to *any* servlet container.

-gkresic.

hantsy bai

unread,
May 19, 2025, 3:12:26 AMMay 19
to ve...@googlegroups.com
I am not sure what you mean exactly here, I usually use it like this,
router.get("/posts").produces("application/json").handler(handlers::all);

---

Regards,

Hantsy Bai

Self-employed consultant, fullstack developer, agile coach, freelancer/remote worker

GitHub: https://github.com/hantsy

Twitter: https://twitter.com/@hantsy

Medium: https://medium.com/@hantsy

--
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.

Gordan Krešić

unread,
May 19, 2025, 3:17:15 AMMay 19
to ve...@googlegroups.com
On 19. 05. 2025. 09:11, hantsy bai wrote:
> I am not sure what you mean exactly here, I usually use it like this,
>
> router.get("/posts").produces("application/json").handler(handlers::all);
>
>
> see: https://github.com/hantsy/vertx-sandbox/blob/master/web/src/main/java/com/example/demo/MainVerticle.java#L83

Exactly :)

And do you happen to know of any library that would provide that exact (or very similar) functionality/syntax when attached to, for example, Tomcat?

-gkresic.

hantsy bai

unread,
May 19, 2025, 3:21:43 AMMay 19
to ve...@googlegroups.com
When using Jetty/Tomcat, use Spring please, since 5.x Spring MVC provides functional programming.
Spring WebFlux can also be adapted to use Jetty/Tomcat as runtime.

---

Regards,

Hantsy Bai

Self-employed consultant, fullstack developer, agile coach, freelancer/remote worker

GitHub: https://github.com/hantsy

Twitter: https://twitter.com/@hantsy

Medium: https://medium.com/@hantsy

--
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.
Reply all
Reply to author
Forward
0 new messages