https://kotlinlang.org logo
Title
u

ursus

07/29/2018, 10:22 PM
Hi, im android developer. I want to ask, whats the current go to framework for medium sized webserver?
m

Max Russek

07/30/2018, 1:45 AM
I’d recommend spring unless you have some specific other requirements
d

dave08

07/30/2018, 1:46 AM
If you don't all of springs bells and whistles, I'd go for Ktor. But to be fair, theres http4k, javalin, spark, vert.x each one has there advantages and disadvantages. Ktor is a Kotlin DSL and is based on Coroutines, you can switch the underlying server (Netty, Jetty...), and it has a bunch of pluggable Features, and a Webclient too. It's nice to work with, and isn't overbloated when you don't want it to be.
u

ursus

07/30/2018, 2:51 AM
thanks
and what about database? postgres + jpa?
d

dave08

07/30/2018, 5:34 AM
You could try #exposed or #squash if you want a more Kotlinish interface, also Vert.x has async db clients if that's your need.
n

napperley

07/30/2018, 7:31 AM
JOOQ is a good library to use for accessing a relational DB (https://www.jooq.org/).
👍 1
a

Antero Duarte

07/30/2018, 9:09 AM
+1 for ktor, really smooth learning curve as well, and a good introduction to kotlin as a language, if that's your case
o

orangy

07/30/2018, 10:04 AM
If you decide to try with Ktor, there is #ktor and ktor.io