Any plans to introduce Rust into Wappler?

Good morning Everyone,

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.

Here is my take on Node.js vs Rust in Wappler. There really won’t be major changes between the two besides the speed and computation needed.

While I will continue to use Node.js now and for the foreseeable future. Should we also bring Rust into Wappler?

1 Like

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

2 Likes

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

3 Likes

In that case we can also hope to see Tauri as replacement/successor of Electron. ??? :thinking:

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.

1 Like

Here’s the thread from a couple of years ago suggesting Go.

I don’t think there’s a feature request for it, though.