node.js vs. 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.
I have developed services with nodejs and I wonder a performance comparison between nodejs and kotlin as a server side development.
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.
https://rclayton.silvrback.com/speaking-intelligently-about-...
It takes full advantage of powerful Kotlin features like coroutines to make the barrier between browser and server almost invisible.
Unless, you want to build a prototype and do not know the language. NodeJS may help you get started quickly.
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?
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