Scala vs Kotlin for REST API
Hello!
I have some experience with Java, Kotlin and Scala. My favourite language by far is Scala, mostly because of their support for FP and monads compared to the other two. I just started in a new job where I am able to decide what language to use for our new backend. I would love to use Scala, however, finding the appropriate libraries/frameworks for Scala seems like a hassle. For Java/Kotlin its a no brainer : Spring Boot.
Because of this, I'm not sure if its worth to go for Scala even.
I have been looking at:
Rest api:
Play - No support for Scala 3 yet?
Http4s
Cask
Akka http
DI:
No library - Cake pattern (or any other way without any library)
MacWire
Datebase access:
Quill
Doobie
Slick
ScalikeJDBC
Trying to find out what we should choose is giving me a headeache. In my earlier job we used
Akka Http, Cake pattern and ScalikeJDBC, but I don't want to use this stack just because I have experience in it. For example, a quick google search has shown me that the cake pattern really is not a good way to do DI (although I personally didn't have any strong problems with it, although it did became a little bit messy when the code base grew big). It just seems much simpler just to pick Kotlin + Spring boot.
What do you guys think?