r/Kotlin•
devsquid

KTor

Hey KTor looks pretty interesting to me. I prefer lighter weight server frameworks (probably because my companies servers tend to just be simple API servers).

Is anyone using it in production?

Posted Dec 5, 2017, 9:58 PM UTC

68
UselessOptions•

I'm using it + Kotlin Exposed for a small cataloguing web app I'm creating. It's mostly fine, but the lack of documentation is very annoying. I've also ended up needing codegen (KotlinPoet) so my database structure and POST requests end up being the same.

7
soulnothing•

Thank you for sharing KotlinPoet, I was just researching how to do something similar.

The documentation is the biggest thing as well. I'm still very naive in its use to give a pro/con with it.

2
crummy•

The lack of documentation is painful. I still don't know how to get @Location working right. But it seems widely used, at least in Kotlin circles.

3
devsquidOP•

That seems to be a common sentiment and it's something I noticed when looking at the repo.

2
devsquidOP•

I am a bit nervous to deploy this into production at my company because its in beta, but we started using Kotlin when it was in Beta too!

2
javalin_io•

I wouldn't worry. Although they are not at v1 yet, that has more to do with API design than stability. If you're okay with rewriting a few things when they launch v1, you should be fine.

3
Luckychatt•

I really like Ktor, but you have to expect at least some bugs given its maturity. Can your product live with that? Then by all means go for it. Ktor is awesome! (In other words, stay away from it if you are developing for the military or the healthcare sector)

2
sanity•

My project Kweb is built on top of Ktor and it works pretty nicely.

Kweb is a fairly novel approach to building rich interactive web applications without having to use JavaScript or having to worry about client-browser communication.

2