My group is planning to rebuild our backend servic...
# spring
m
My group is planning to rebuild our backend service with Spring, and Kotlin seems a good option. So is there any advice?
👍 1
stackoverflow 1
s

https://www.youtube.com/watch?v=Ylrxpbs6vcs&feature=youtu.be

m
Thanks for the video, and is there any difficulties that anyone have encountered in real world practice comparing to Java? We are still in planning stage.
d
my advice is... what are you waiting for? Just do it! 😄 We have a couple of microservices running in production with kotlin + spring and they were really easy to develop and mantain.
👍 3
t
s
I think Kotlin usage with Spring is now pretty mature, and is going to continue to be improved with reference doc written with Kotlin code samples, more support for
val
everywhere, Coroutines, Spring MVC routing DSL, etc.
It is increasingly important in Spring ecosystem and that trend will only accelerate IMO.
So it is a safe bet for new projects
Also we will share more at SpringOne Platform but you can expect significant perf improvement in Spring Boot 2.2.
🎉 1
d
I transitioned a large app and several microservices to Spring Boot/Kotlin from Java, I can second that it's a safe bet (I'd argue a better decision than using Java/Spring Boot).
One pain point I noticed is that Jackson isn't as smart as it could be mapping JSON to POJO, and can fail silently if you're not careful.
Generally though it's a great combo
And Kotlin will make you want to never look at another line of Java 😁
👍 4
s
At the current company I’m working on we have made several production critical scalable applications on kubernetes and aws
g
We are using Spring with Java and Lombok. I just had a small project myself with Spring and Kotlin but liked it better. We are allowed to use Kotlin for the backend also recently, so might start using it.
👍 2