Hi, what is the preferred language to write Flink ...
# random
a
Hi, what is the preferred language to write Flink applications. Java vs Scala? Initially I was thinking of scala but latest version of flink seem to have dropped any requirement for scala in dependency versions and docs also seem to use java everywhere (with scala and python in other tabs)
m
It doesn't really matter, but I would recommend using Flinks Java APIs. The Scala APIs in Flink have been neglected for a while now and only support Scala 2.12.7 at the moment. With the Java APIs, you can use any Scala version. There's also a Flink blog on that topic
πŸ‘ 2
a
Ohh didnt know that. Thank you.
m
p
Has anyone given a try to writing the code in Kotlin?
Using the Java APIs?
c
It's certainly possible to write a Flink application in Kotlin, using the Java APIs. Here's an example: https://docs.immerok.cloud/docs/cookbook/writing-application-in-kotlin/
πŸ‘ 2