3 ms·
We use it as a rest api framework for a react front end and it’s just fine. Performance is not really and issue for us so far. If you like express you will like
by slively 5y ago
We use it as a rest api framework for a react front end and it’s just fine. Performance is not really and issue for us so far. If you like express you will like Ktor, but you will find less libraries for middleware stuff. Exposed is also pretty nice as a JDBC wrapper and object mapper. If you like composing libraries over using a framework then it’s a good choice. If you are invested in coroutines like us Ktor is great, but Exposed isn’t really async all the way through and you’d want something like r2dbc ideally. Exposed has a wrapper for coroutines though.
Clikt is a nice config parser as well, and Koin is fine for DI. Jackson has good Kotlin support, and I haven’t tried the Kotlin serialization package yet but it looks interesting.
These days i prefer some of the library stitching done for me and would probably opt for spring boot and webflux which has nice Kotlin and coroutine support now.