Hello! Has someone had a chance to compare Ktor an...
# server
v
Hello! Has someone had a chance to compare Ktor and ExpressJS? Their approaches seem to be very similar.
o
If you wish raw performance, here is snapshot from TFB. Ktor is twice as fast.
d
Is this a test conducted using Kotlin JS target for ktor?
o
No, it’s JVM
d
Fair enough.
v
@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
I think the similarities start and end with the ability to register endpoint handlers using lambdas tbh
👌 5
1
k
Your colleague thinks a DSL is what makes a framework? 😂
v
@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
ExpressJS is that... Thought you showed him the DSL...