JETTY Web server vs Node Js web server - Which consumes more RAM/Memory and battery when handling websocket connections

44 views
Skip to first unread message

Samuel Victor

unread,
Aug 25, 2026, 9:24:06 AMAug 25
to DroidScript
Hey fam!
I have been thinking of something for some time now and it's really important.
I'd like to know, for those of us more experienced in DroidScript,
Java based Jetty server vs NodeJs Web Server
Which consumes more RAM/Memory and consumes more battery.

I have tested only Jetty Server on Android and it seems performant,
I would also like to know why Jetty on DroidScript has remained in Jetty 8 since.

Any answer would be highly appreciated

Best Regards,
Sam

Dave

unread,
Aug 30, 2026, 5:47:16 AMAug 30
to DroidScript
Hi,

The Jetty webserver is built-in to the DS core engine, so using that would take less RAM than loading a NodeJS instance as well. However that internal Jetty server has limited features compared with NodeJS, which has an infinite number of modules and extensions available.  We have not updated the Jetty server because it takes a lot more work to add features and maintain it compared to NodeJS.  We are using NodeJS internally in DS to run extensions and the sibling project 'NodeStudio' also is heavily NodeJS focused, so it's natural for us to focus on that.  Modern devices have lot's of RAM these days and running an NodeJS server in your app is not such a big deal as it used to be when we first started out with DroidScript.  That said, if someone was to write a DS plugin with a more advanced Jetty server module, then we would be very happy to have that option for our users :)
Reply all
Reply to author
Forward
0 new messages