A
A
Alexey2017-05-12 09:14:51
JavaScript
Alexey, 2017-05-12 09:14:51

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

1 answer(s)
A
Alexander Drozdov, 2017-05-12
@bagzon

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 question

Ask a Question

731 491 924 answers to any question