node.js vs. kotlin as a server side development
Hello.
I have developed services with nodejs and I wonder a performance comparison between nodejs and kotlin as a server side development.
I have developed services with nodejs and I wonder a performance comparison between nodejs and kotlin as a server side development.
10 comments
[ 1.7 ms ] story [ 50.3 ms ] threadhttps://rclayton.silvrback.com/speaking-intelligently-about-...
Unless, you want to build a prototype and do not know the language. NodeJS may help you get started quickly.
That said, at my place of employment I am currently in the middle of migrating OFF a node server (your typical express stack) to a Kotlin/Spring based one. I think I have the perspective you want in other words.
My recommendation is use Kotlin. Its fast, interops with the entire Java ecosystem and all its libraries, has a fantastic and sane type system (think TypeScript on steroids) and fantastic tooling. Its also pretty easy to pick up. I had never worked with it before and I was up and running on day one with it.
The speed difference depends on what you're doing, but I would guess it's rare to find situations where Kotlin is less than twice as fast
But is raw cpu time really what matters most for you or solving a problem in away that can be scaled and maintained in away that you understand maybe more important?
It takes full advantage of powerful Kotlin features like coroutines to make the barrier between browser and server almost invisible.