Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
30 views

proxy:error [pid 8118] (32)Broken pipe: [client *.*.*.230:50314] AH01084: pass request body failed to [::1]:5100 (localhost) - Nodejs API

I have created an API in nodejs (nestjs framework). Now client API call reaches load balancer then LB distributes the traffic to 2 machines on which nodejs API runs but request first comes to apache ...
Sujit Verma's user avatar
0 votes
0 answers
35 views

How to perform socket operation on a worker thread in Javascript?

I am trying to implement WebRTC signaling using socket.io. Since handling new connections and handling different events for signaling will take a huge toll if performed on a single thread, I am ...
Aamir's user avatar
  • 13
0 votes
0 answers
28 views

Sqlite database locked using node js

Insert data in sqlite database concurrently uisng node js. How to insert data in sqlite database concurrently using node js considering 10000 records per seconds.Issue im facing is of database locked ...
Neha Kumari's user avatar
1 vote
0 answers
46 views

nodejs write to same file with multiple worker threads concurrently

I'm wondering whether we can write to the same file in multiple worker threads concurrently . I've goolged around, and many people say that this operation may cause file write collisions, so I write ...
Jess's user avatar
  • 650
0 votes
0 answers
18 views

Intermittent issue with a WebSocket connection in Nodejs

I'm encountering an intermittent issue with a WebSocket connection in my Node.js application. The WebSocket connection is managed within a function called connectWebSocket, which establishes a ...
Jack's user avatar
  • 120
0 votes
3 answers
168 views

Users can concurrently withdraw above their wallet balance by initiating multiple concurrent withdrawals

I am updating a finance application built on node.js, mongodb and ```mongoose`` and I am currently facing a challenge with the logic to process fund withdrawals from the system. The problem is that a ...
Hilory's user avatar
  • 1,153
1 vote
1 answer
49 views

No way to limit concurrency in node?

I've been looking for a way to do this: Instead of: await myfunc() I want to: limiter = Limiter(50) await limiter(myfunc) The Limiter won't add my function to the event queue and, instead, will block ...
Erik Aronesty's user avatar
0 votes
0 answers
21 views

How to deal with objects creation per request with high RPM node applications

I'm trying to refactor an app to use Entity classes which are supposed to encapsulate business logic and make operations related to their domain. For example, I have an AccountEntity which takes care ...
Mauricio Dziedzinski's user avatar
0 votes
1 answer
87 views

python with a javascript subprocess

I am trying to start a javascript subprocess inside a python script. I'd like to do some photo analysis, by using the Human repo, which doesn't have any Python porting (natively js), so I must execute ...
elbarto's user avatar
0 votes
0 answers
22 views

Append to same file from different processes concurrently on MacOS

Is it possible to concurrently append to one file data from different Node.js services on macOS or are there limitations imposed by filesystem/OS?
zmii's user avatar
  • 4,253
0 votes
1 answer
31 views

Force instance of Database using all() in serial to update global variable

I am learning sqlite3 in Node.js and having problem with following code var sqlite3 = require('sqlite3').verbose(); var db = new sqlite3.Database('first.db'); console.log("in the program"); ...
dudung's user avatar
  • 653
0 votes
1 answer
35 views

Concurenncy control mechanism in node.js

const tasks = ... let concurenncy = 2; let running = 0; let completed = 0; let index = 0; function next() { while (running < concurenncy && index < tasks.length) { const task ...
davaer's user avatar
  • 1
0 votes
1 answer
55 views

AWS Lambda Concurrent execution throw Cannot overwrite `Entity` model once compiled

I'm working with a AWS Lambda method using nodejs 18. The entry point handler method is as below: export const handler = async (event) => { try { const dbClient = await connectToMongoDB(); ...
Ravikumar Sharma's user avatar
0 votes
1 answer
201 views

Server with LLMs

I'm currently working on an express server (Node) that uses LangChain and LLMs(OpenAI). To use LangChain or communicate with LLMs, I first need to create an object. Now, two approaches come across my ...
WhaSukGO's user avatar
  • 695

15 30 50 per page
1
2 3 4 5
27