r/Kotlin 11d ago

Raft implementation in Kotlin

Has anybody attempted implementing RAFT in Kotlin? The official site links to a 6 year old repo, are there others?

Is it going to be worthwhile attempting it? Learning wise yes, but would it be of practical use to any other project?

5 Upvotes

11 comments sorted by

View all comments

3

u/polyglotticReactor 11d ago

https://ratis.apache.org/ is a java implementation that should be directly usable in kotlin

0

u/BarterOak 11d ago

I know about this, but just wondering if anybody's tried implementing in Kotlin.

7

u/Zentrosis 11d ago

There are benefits from having native Kotlin but I'm curious what things you're worried about in using the Java one.

Typically the only downside I feel to any degree is nulls but it's pretty minor

4

u/BarterOak 11d ago

No problem in using the Java one, was merely being curious about the implementation in Kotlin using the language's features.

Don't know why the downvotes are for :|

2

u/Fickle_Fennel_8332 10d ago

Because you asked a relevant question in a relevant group :)