I’ve been building our enterprise system in Wappler for the past 2 years. Great, we love Wappler. We also love Node.js, but when it comes to enterprise systems supporting more than 250 users at any given moment, in addition to more than 15,000 user accounts setup. Node,js tends to either lag or request more processing power from the server.
Rust on the other hand can handle a plethora of requests and transactions.
Below is a calculation from ChatGPT based on our system needs and requests:
I’ve also simulated a 192GB Ram server, and there is a huge difference between what Node.js and Rust can handle, with Rust handling more TPS than Node.js.
Wappler uses JSON files to store Server Action steps. Because of this, step executions can't be compiled into machine code, and this is the bottleneck. Moving to Rust wouldn't solve the problem, unless a significant architecture change (JSON to code), which I find unlikely - if happened, it would probably significantly speed-up NodeJS.
You should scale NodeJS to take advantage of a multi-core CPU. Before Rust there was also the idea of moving to Go, which supports multi-core natively, but would still experience the same bottleneck of Server Action JSON overhead
Well that is not necessarily true, we are looking already for some compiler solutions to precompile the json into native code that can run fully native afterwards.
This will open more possibilities in compiled backends like Go, Rust and asp.net core
but even if the json have to be evaluated during the runtime, on compiled backends it is much faster, we have seen this with the current asp.net
yes we are looking at Tauri too, as it is a solid runtime.
You might want to post a feature request about it, so others can vote - and the more votes you get the higher priority we put.
Do describe the feature and advantages well in the future request, so it is clear why it will be useful. You might want to use also ChatGPT for easier and complete description.