is there a de facto web framework for kotlin?
# server
m
is there a de facto web framework for kotlin?
b
spring seems to work well. Ktor is built by kotlin guys but is still pretty beta
f
spring boot is my go to
m
are you guys using spring in enterprise, or smaller startups and your own projects?
I was not able to find non enterprise user facing apps in production built on spring.
f
I’m in the “innovation center” of a large company for what’s worth.
and also use it for personal stuff, boot is very easy to get something up and running quickly
👍 2
m
good to know. I wonder why I cannot find user facing spring apps in production.
I do want to use kotlin for my next web app, but I'm worried that spring would be the wrong choice for non enterprise.
b
For non enterprise spring I saw this post yesterday https://geowarin.github.io/what-i-did-wrong-as-a-cto/
f
the short version:
Copy code
Our project was a SaaS management application. We wanted our users to have a great experience, to distinguish ourselves from the competition, and improve their productivity.

We used Kotlin and Spring Boot on the backend, React and Typescript on the frontend.

I'm really comfortable with those technologies and that's why I chose them.

Even if you're only using parts of our stack, I believe that some of the things I learned will be useful to you.
(spring boot wasn’t one of the “wrong” things in the post)
m
thank you!
f
Dropwizard works great with Kotlin as well
👍🏻 1
d
Short version - there’s no defacto standard. There are a few pure Kotlin that I know are used in production (http4k/ktor included), but Java frameworks such as spark and dropwizard and other will work well and are obviously also battle tested. Personally, I would avoid spring (or any other DI framework), but I know that’s not a popular option.
a
vert.x is my go to
👍 1
d
Personally, I'm up for any solution that doesn't involve magic and is a*unit* testable. If you need to launch a server to test it that's a major problem,
And that includes any "just put your app in this magic container test infra".
d
But @dave, that's not a problem with vert.x inherently, but rather with all react async frameworks like node.js... I actually use a Controller wrapper for testing in Vert.x... you could use any async testing framework to do mostly the same as theirs...