Hey guys, I want to build a RESTful API with Kotli...
# announcements
m
Hey guys, I want to build a RESTful API with Kotlin. What is the best Framework for that?
n
You can use https://javalin.io/ or https://ktor.io/ for your backend.
r
I don’t think there is a single answer to that question 🙂
💯 2
m
but what would you recommend?:)
r
I have myself used spring boot, micronaut and http4k and liked Micronaut best
s
I can't speak for Ktor, though our developers are having a good time with Javalin
t
I’d personally say spring boot, it is probably the heavier of them all, the ecosystem is incredible and highly developed, other frameworks I looked at in the past always had more work for me to do with non-functional code than spring (but haven’t tried most of the modern one, like micronaut and quarkus). ktor felt interesting but lacking so many features, though I did not dig deep there
e
Depends. 🙃 What do you need? You can try some light-frameworks like ktor or http4k. Or if you need something more complex you can go in the direction of a complete framework like Spring , Quarkus, Micronaut.
If you want to build one for learning and finding jobs as a backend. I highly recommend spring, which is not my favorite but is the one that can bring you some job opportunities.
m
I use Micronaut at work, and personal projects. Incredibly easy to pick up and use, but there are many alternatives that are viable as mentioned above.
d
It is also a matter of taste ... Should it be opiniated or non-opinionated ?