Hi all, I'm considering using kotlin for a Flink p...
# random
a
Hi all, I'm considering using kotlin for a Flink project. Has anyone tried that? How was the experience?
c
We've been using Kotlin with Flink since June and so far the experience has been smooth. Can't really compare with Java because we switched from Scala, but did not experience any issues that I would associate to the language choice itself.
👍 1
The only real downside is the lack of documentation and examples which is understandable, given that it is an unusual combo. You'll find yourself reading (and adapting) a lot of Java code.
j
also curious if there are any good resources here. we’re using Kotlin and Flink, only ran into minor issues so far (using Jackson and Kotlin data classes doesn’t work out of the box with the kotlin module since some things are not serializable… easy enough to work around). My IDE will convert Java to Kotlin automatically which has helped speed up applying examples from documentation
k
Interesting discussion! @Caio Taniguchi May I ask why you switched from Scala? Were there some Flink-specific issues or is it just because Scala has been declining in popularity?
j
Our team has also started using it since early this year. The reason our team started using Kotlin with Flink is that we have a lot of high-quality Kotlin code in-house, which makes it convenient for us to reuse and integrate. One reason I find Kotlin attractive is its coroutines feature. Have you used it before?
d
It isn't terrible, but there is a bit of weirdness to get used to. Like models you want to serialize as POJOs should be POJOs (and not kotlin data classes, or at least compile to POJOs)
j
Isn't Terrible lol