Content pfp
Content
@
0 reply
0 recast
2 reactions

Haardik pfp
Haardik
@haardikkk
websocket servers in nodejs are a sin
1 reply
0 recast
6 reactions

Gabriel Ayuso pfp
Gabriel Ayuso
@gabrielayuso.eth
I'd argue that all nodejs servers for more than just a toy app are a sin. (Even though I work on one lol) Bun seems like a promising solution for folks that want to stay in JS/TS land. I'd still chose something else though.
2 replies
0 recast
4 reactions

Tayyab - d/acc pfp
Tayyab - d/acc
@tayyab
What would you use instead? Feel free to specify a small handful based on use cases, if "depends". Working on side projects and might be good to try my hands at a few thing
1 reply
0 recast
1 reaction

Gabriel Ayuso pfp
Gabriel Ayuso
@gabrielayuso.eth
I'm a big fan of Go since it's great across the board, regardless of use case. In the rare case where you need to squeeze as much performance as possible then languages such as Rust, Zig and C/C++ will do. I've never used it myself but if I were to start a backend focused on real-time and websockets then I'd try Elixir since it seems to be the best for that. Scala might be another good option if your servers are always on since JVM has a cold-start problem but given its learning curve, I might as well just use Rust instead.
1 reply
0 recast
2 reactions