1. 15

I’m curious, who uses Kotlin in the backend? What do they use it for?

I know it’s a popular language for Android dev, but was curious how it’s being used in the backend, and if it’s growing in that space or staying constant. (ex: api’s in Kotlin)

  1.  

  2. 4

    My team and I do. I don’t like it because I don’t really like working with any JVM language and the slow ass tools at all but it is effective. I was overruled for new language picks. We get to use any java library we want, null checks are nice. Jooq is a bit of a pain so we’ve moved to handwritten queries for most things. Vertx is pretty ok. Everything is stable including the 6 month jdk upgrades.

    There’s really not too much to complain about. I suggest you use it if you have want to use Kotlin and want to continue using JVM stuff. I still don’t like it though.

    1. 3

      We started using Kotlin for some microservices, along with Spring. So far, it’s a nice language, but I miss some of Rails niceties. Whenever we want to add a library and/or do something we haven’t done before, it feels there’s way more settings to configure and manual steps to make it work than it would require in Rails.

      1. 3

        We use Kotlin on our backend with Spring (Webflux + coroutines), and Hibernate. Other than initial nuances on Jackson and some basic issues everything works pretty smoothly. IMHO it’s an underrated language for backends so far, but with projects like Ktor I think we might see wider adoption soon.

        1. 3

          We use Kotlin for our API layer. It interfaces with AWS Athena and Aurora Postgres. Most of our backends are written in JRuby, but we’ve started using Kotlin for new projects.

          1. 2

            Log parsing and data analysis on the backend. It’s been a pleasure to work with.

            1. 2

              We use it heavily on our backend (all on AWS). The ability to trivially leverage the Java ecosystem, but get immutability/data classes/terser code/etc., makes it a really clean win for us. We’ve also used Kotlin for a lot of our dev tools (frequently using Clikt for the CLI), which has also been very solid.

              1. 2

                My former employer AlphaSights does use Kotlin for writing http services. I’d say it’s a no-brainer to use anywhere instead of Java these days. There’s just no downsides. (Well, except that you may find other JVM languages that you’ll like even more.)

                1. 2

                  R3 uses Kotlin for their Corda blockchain platform. All the « cord apps » running on top of the platform can use either Java or Kotlin I think.

                  1. 2

                    We’re using Kotlin on the backend to build a workforce analytics platform. The initial prototype was Groovy so there’s still a mix of both. Kotlin is currently serving a GraphQL endpoint and we’re leveraging micronaut as a microservices framework.

                    1. 2

                      Kotlin powers the obfuscator I wrote for JVM bytecode, but it’s not a web application.