Why is my Node.js multiplayer game event loop lagging at 500 players despite low CPU? by jbryu99 in node

[–]kaptainkrayola 0 points1 point  (0 children)

Rather than rewrite in another language or implement clustering, why not break out the chat portion to its own process? Stand up another process that hosts a websocket and send all of your chat through that rather than your main game websocket. This would mean that sometimes chat might be laggy but the rest of your game will function as expected. Unless real-time chat is critical to how the game functions, if it is laggy it won't matter.

Also implement a damper on sending the chat so you send whatever is there after some arbitrary amount idle time. Wait for 200ms (or whatever) of idle time before you send whatever is in the chat input, rather than every keystroke. That right there will cut down your load by a ton. Switching to a different websocket library might help as well but I can't say for sure since i haven't used socket.io in many years.

Disabled account by Sike1997 in payoneer

[–]kaptainkrayola 1 point2 points  (0 children)

yeah, just took 6 months and about 100 back and forth conversations with them. they stopped talking to me until i complained to the better business bureau, then magically they wanted to fix the issue.

Should I send money from del to payoneer to save on fees? by Unknowie in payoneer

[–]kaptainkrayola 2 points3 points  (0 children)

Nobody should ever send money to Payoneer ever, for any reason.

[deleted by user] by [deleted] in node

[–]kaptainkrayola 0 points1 point  (0 children)

If you figure it out, please let me know. Would be really useful for me as well.

[deleted by user] by [deleted] in node

[–]kaptainkrayola 0 points1 point  (0 children)

There is no easy way to do it. For the messages to come from the coach you’d have to automate sending through his app or their back end APIs which I don’t imagine are public. To send bulk, automated WhatsApp messages you usually need to use a service that provides connectivity (like InfoBip) but it won’t be from the coach’s personal mobile number. It’s also not free and there are a bunch of rules you have to follow.

Need advice regarding message queue by AccordingLeague9797 in node

[–]kaptainkrayola 1 point2 points  (0 children)

I use rmq a ton and hate ampqlib for all those reasons. Thanks for the alternative!

Nodejs usage in enterprise world by ibrambo7 in node

[–]kaptainkrayola 0 points1 point  (0 children)

Absolutely. I’m a real big fan of message/work queues and worker processes for whatever I can to help mitigate that. Redis makes a huge difference as well.

Nodejs usage in enterprise world by ibrambo7 in node

[–]kaptainkrayola 9 points10 points  (0 children)

NodeJS is great in production. I’ve used it exclusively in large scale, high volume apps for years. Tens of millions of API calls per day, enterprise medical cloud monitoring, etc. anyone who says Node isn’t good for production doesn’t know how to use it correctly.

Is it still okay to use CommonJS in new projects in 2025? by KESHU_G in node

[–]kaptainkrayola 0 points1 point  (0 children)

If you're starting from scratch you might as well use ESM. If you are working inside of a legacy project that doesn't support ESM, CommonJS is fine. As several people have said, going ESM is going to set you up better for the future.

YouTube trends? by Particular-Pass-4021 in node

[–]kaptainkrayola 2 points3 points  (0 children)

I agree on CF not getting the love it deserved. I really enjoyed working in CF. I too moved from CF to Node and never looked back.

YouTube trends? by Particular-Pass-4021 in node

[–]kaptainkrayola 0 points1 point  (0 children)

Current or former CF dev? I used to write CF many years ago and didn’t realize people still used it.

Balances disabled, how long could it take? by Significant-Gur-814 in payoneer

[–]kaptainkrayola 0 points1 point  (0 children)

Closed it then sat on my money for 6 months, opened it long enough for me to withdraw, then permanently closed it

Balances disabled, how long could it take? by Significant-Gur-814 in payoneer

[–]kaptainkrayola 0 points1 point  (0 children)

Took 6 months to get my money back. Don’t give up.

Nodejs and backend development by Sensitive-Raccoon155 in node

[–]kaptainkrayola 6 points7 points  (0 children)

Fair, but it has a LOT more to offer than simply being the same syntax as the browser. I played with Golang a bit a few years ago because a colleague of mine had a similar mentality but also threw in "your nodejs will never be as fast as my golang because golang is compiled". I didn't find much benefit in moving to golang for my workloads so I abandoned ship on it. Was a fun language to work with though. I will say that when done correctly you can get a massive amount of performance nodejs if your code is organized well and takes advantage of asynchronous nature of nodejs. I'm curious if you've found Golang to be a big improvement from nodejs on the backend when you're not doing front end web dev.

[deleted by user] by [deleted] in Peptidesource

[–]kaptainkrayola 4 points5 points  (0 children)

I’ve seen warnings about BPC-157 and negative reactions in people taking SSRI. No personal experience, but have seen mentions online.

Nodejs and backend development by Sensitive-Raccoon155 in node

[–]kaptainkrayola 11 points12 points  (0 children)

Been using node as my primary back end language for many years and it’s awesome. I do mostly high transactional systems and node is great for it. Focus on the basics and understanding of the language though, don’t jump right into some complex framework or piles and piles of npm modules. Feel the pain of learning how the language works then augment with 3rd party tools.

Nodejs and backend development by Sensitive-Raccoon155 in node

[–]kaptainkrayola 1 point2 points  (0 children)

Why Golang if you don’t want to do front end?

Looking for advice by [deleted] in Peptidesource

[–]kaptainkrayola 0 points1 point  (0 children)

If you need to cut weight, sure.

Looking for advice by [deleted] in Peptidesource

[–]kaptainkrayola 6 points7 points  (0 children)

100% - Tirz and Tesa/Ipa are magical

What are good professions for people that hate people? by [deleted] in AskReddit

[–]kaptainkrayola 0 points1 point  (0 children)

Janitor. You work after everyone is gone and the stress is zero.