Hacker News new | ask | show | jobs
by matrix 3149 days ago
Looks nice and clean. What use cases make this a better choice than Ktor? This is an important question to answer because Ktor seems a bit more complete, has more contributors, and is backed by IntelliJ.

One big point in Javalin's favor: it does have more documentation than Ktor, which is currently missing some rather important parts (e.g. having no documentation for authentication and authorization is kinda unforgivable).

1 comments

I'm slightly biased of course, but Javalin is just a lot simpler to use. That might be because it's inherently simpler, or because Ktor's docs (as you pointed out) are very incomplete. I've tried to setup simple apps in Ktor to compare how it feels to write apps in it compared to Javalin, but I have given up on a lot of them because of the lack of documentation.

Other than that, Javalin is aimed at java-devs who have switched (or are interested in switching) to Kotlin, and works equally well in Java and Kotlin. Ktor is probably a better fit if you're a Kotlin purist.