SowmyaAce786

joined 1 month ago
[–] SowmyaAce786@programming.dev 3 points 3 weeks ago (1 children)

Yeah that's true dB async ops are unpredictable. But brahma guarantees you fast api. Non blocking yet u can run multi thread without cluster so you are utilizing all cores for sure. Let me share one thing parsing a large json payload in express literally tedious where as brahma does that within few micro seconds. So you no need to wait longer and continue your focus on async works.

[–] SowmyaAce786@programming.dev 1 points 3 weeks ago* (last edited 3 weeks ago) (3 children)

If you take any Node.js framework like Express, Fastify, or Hono, they run on a single core by default. That’s the biggest overhead unless you explicitly use clustering.

BrahmaJS, on the other hand, provides upgraded I/O and TCP modules built on top of Rust’s Tokio runtime, which is far more efficient than Node.js. By default, BrahmaJS runs in a multithreaded mode, utilizing all available CPU cores without needing Node.js clustering.

Another key advantage is that heavy tasks like body parsing are handled by Hyper. This means your Node.js handlers receive a cleaned request and you can simply return your response using async/await.

The only overhead comes from the N-API thread-safe function, which manages data transfer between the Node.js world and the Rust world—but this overhead is minimal.

Since all your endpoints are io heavy brahma Js can offer you quick body parsing and micro milliseconds perf compared to express undoubtebly.

 

It's been a long time since 2023, when Bun.js arrived and disrupted the JavaScript world. During that time, I was working on something unusual—something that encourages all JS developers to write API code that actually runs on top of Rust.

I gave it my best and eventually published this framework on npm. Many people asked for async support, and after countless sleepless nights, I finally achieved it. Meet Brahma-JS (brahma-firelight) one of my finest creations that replaces Node.js tcp / http module with Rust's Tokio and Hyper library inspired from Deno runtime. Also I tested against the fastest rust frame work may-mini-http.

May-MiniHTTP Benchmarks

Running 10s test @ http://127.0.0.1:8080/
  1 threads and 200 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.70ms  812.42us  20.17ms   97.94%
    Req/Sec   117.65k     7.52k  123.40k    88.00%
  1171118 requests in 10.08s, 115.04MB read
Requests/sec: 116181.73
Transfer/sec:     11.41MB

Brahma-JS Benchmarks

Running 10s test @ [http://127.0.0.1:2000/hi](http://127.0.0.1:2000/hi)
1 threads and 200 connections
Thread Stats   Avg      Stdev     Max   +/- Stdev
Latency     1.51ms  479.16us   7.89ms   78.17%
Req/Sec   131.57k     9.13k  146.78k    79.00%
1309338 requests in 10.00s, 186.05MB read
Requests/sec: 130899.58
Transfer/sec: 18.60MB

Oh sure, just another framework casually doing 130k+ requests/sec. No big deal. Totally normal. Definitely not powered by a Rust beast disguised as friendly JavaScript.

Now I have released v1.5 A stable release with support for Mac, Linux and Windows too. You can give a try by starting

npm i brahma-firelight 

If you find this framework useful plz do share your thoughts and feedbacks.

Npm : https://www.npmjs.com/package/brahma-firelight

Github: https://github.com/Shyam20001/rsjs

[–] SowmyaAce786@programming.dev -2 points 1 month ago

It's open only man home page link. And that was typo in Read Me. Checkout here ok 👍 https://github.com/Shyam20001/brahma-core#readme And it's open only don't be so dramatic lol

 

After months of hard work. Now we are happy to announce that brahma-firelight v1. 5 is out. I tried to make the best Rust based memory safe framework for JS inspired from deno runtime. Finally I achieved it by utilizing napi-rs and tokio with hyper http library. When I performed benchmarks brahma-firelight v1. 5 against bun's elysia on c6i_x4 instance with 16cpus Reaching 1257k Reqs in 11s. My framework literally performed 20% better than elysia. I'll be sharing the bench marks soon. You can check the npm registry by searching directly npm i brahma-firelight

Give a try I made lot of effort in writing this addon with express js ergonomics. Now any js dev can write Rust code without rust that's the Beauty of brahma-firelight. Give a try and share your feed back thanks.

 

It's been a long time since 2023, when Bun.js arrived and disrupted the JavaScript world. During that time, I was working on something unusual—something that encourages all JS developers to write API code that actually runs on top of Rust.

I gave it my best and eventually published this framework on npm. Many people asked for async support, and after countless sleepless nights, I finally achieved it.

Have a look at this framework—still in beta, experimental, and currently working only on Linux, Windows, and ARM T4 on AWS. Brahma-JS is one of my favorite creations, and it has literally edged past uWebSockets.js.

At the same time, I’ve been thinking about the future of Node.js. It has dominated for the past 16 years, going through many ups and downs. I’m truly happy to be a part of this ecosystem and of npm.