Answer the question
In order to leave comments, you need to log in
How to send large buffer between process and worker?
There is a main process and there is a worker (only one is running), from the worker I give data to the process, through process.send, in the process through worker.on('message',...) I get it.
The problem is that when a large buffer appears in the data (I'm testing for 20MB), the transfer is very delayed for 30-40 seconds.
Are there any faster ways to transfer data? I don't want to use the base. Maybe somehow you can natively write to the shared memory?
Answer the question
In order to leave comments, you need to log in
I didn’t cook in this topic, but there was an experience of exchanging data between applications, try to connect using unixsockets
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question