All Questions
Tagged with performance node.js
1,111
questions
0
votes
0
answers
20
views
Speed up external API call
I need to transform a large set of data, that I get calling an external API. This data contains a lot of urls, and I need to parse them in a certain way and return them.
But the problem is that the ...
0
votes
0
answers
46
views
How to send large data to the renderer process with low latency in electron?
I'm working on a video-related project where I've disabled nodeIntegration and enabled contextIsolation for security reasons. My task involves processing business logic in the utility process and then ...
0
votes
0
answers
32
views
How to know the top N lines JS codes that are executed most frequently in browser / nodejs? (performance profiling)
for the JS web app running in the browser / nodejs, is there any way to know the top N lines of code that are executed most frequently ? (just for performance profiling)
or what about the top N ...
1
vote
1
answer
54
views
Seeking Efficient Solutions for Handling Asynchronous File Operations in Node.js
I'm currently developing a Node.js application that requires managing a high volume of asynchronous file operations like reading, writing, and deleting. As I scale up these operations, I'm running ...
0
votes
1
answer
46
views
NodeJS String.indexOf slowness even though index 200/1000000
Consider a long stringified JSON object (millions of characters) returned by an API.
Since I just need to find some value based on its key, my first reflex was to parse it and then select it directly, ...
0
votes
0
answers
14
views
Observing waiting tasks while profiling nodejs
A node.js back end is experiencing some speed issues and I'm trying to investigate. The back end is actually lightweight and the call having the issues is mostly performing a GET request to another ...
0
votes
2
answers
56
views
Improve query time in MongoDB Altas for GET
Here is a snapshot of my code.
exports.getTestCases = async (bucketName, startTimeStamp, endTimeStamp) => {
let results = [];
let startTime = parseInt(startTimeStamp);
let endTime = parseInt(...
2
votes
1
answer
67
views
Optimizing Node.js Real-Time Notification Service for High Traffic Websites
I'm developing a real-time notification service using Node.js with Express, MongoDB for data storage, and Socket.IO for real-time communication. The service is intended to be integrated into various ...
0
votes
2
answers
98
views
Why does this fizz buzz code in Rust slower than Node.js?
I wrote a Rust function that accepts n and returns the fizz buzz sequence from 1 to n. Then I wrote the equivalent in JavaScript and did some benchmarks. Node.js was quite faster than Rust. I did ...
0
votes
1
answer
89
views
Prevent blocking the event loop on sync operations
The company I work for has a micro service which handles 300 requests per second, among 30 NodeJS pods.
The metrics in DataDog showed high latency and cpu usage today, when there was a peak in ...
0
votes
0
answers
14
views
Deployment Practice: Separately a server for background works in node js
I have a Node.js app that utilizes BullMQ, a queue manager for background jobs. My server is becoming slow due to heavy computations of these background jobs. I use Elastic Beanstalk for deployment.
I'...
0
votes
0
answers
59
views
Delay in Processing Bitget WebSocket Messages in Node.js
I'm encountering an issue with the Bitget WebSocket API when trying to fetch real-time data on various cryptocurrencies. The API is supposed to push data every 500 ms. On my end, I process these data ...
0
votes
0
answers
132
views
How can i fix error for npm package k6 in nodejs project
I have a project to be able to call the scenario implemented with k6 by api and give the value vu and iteration in the body.
now i have a package.js with this code:
{
"name": &...
-1
votes
1
answer
20
views
Is there any perforamce implication of try catch block in node.js?
I am using Node.js and using error handling in functions itself.
I will provide 2 sample code just want to know if there will be any performance implications in both these 2 methods.
public async ...
0
votes
0
answers
28
views
Performant way to generate username AdjectiveAnimalNumber
Our current new users are automatically given a username like Guest1, Guest99.
It would be great if we could change this to generate a username that follows this format ${Adjective}${Animal}${Number}.
...