https://kotlinlang.org logo
Title
v

voddan

10/11/2018, 5:24 PM
Hello! Has someone had a chance to compare Ktor and ExpressJS? Their approaches seem to be very similar.
o

orangy

10/11/2018, 5:46 PM
If you wish raw performance, here is snapshot from TFB. Ktor is twice as fast.
d

Dico

10/11/2018, 6:11 PM
Is this a test conducted using Kotlin JS target for ktor?
o

orangy

10/11/2018, 6:17 PM
No, it’s JVM
d

Dico

10/11/2018, 6:18 PM
Fair enough.
v

voddan

10/11/2018, 7:07 PM
@orangy why am I not surprised about the performance? 🙂
Actually I was wondering if Ktor took some things from ExpressJS, which is much older, but judging by the answers, it did not
The question appeared after I pitched Ktor to a colleague, and he said "oh, so it is just like ExpressJS in Kotlin"
s

Shawn

10/11/2018, 7:11 PM
I think the similarities start and end with the ability to register endpoint handlers using lambdas tbh
:yes: 5
1
k

kenkyee

10/12/2018, 6:37 AM
Your colleague thinks a DSL is what makes a framework? 😂
v

voddan

10/12/2018, 8:29 AM
@kenkyee my pitch was that "ktor is super small, but it is very easy to connect integration modules to it". The DSL wasn't even mentioned
k

kenkyee

10/12/2018, 8:31 AM
ExpressJS is that... Thought you showed him the DSL...