I have an application on Elixir that should receive a large amount of data, then distribute the data to n parts.
These parts must be processed in parallel, but the number of simultaneous employees should be limited. The employee returns a large array of values as a result of the processing.
The main process, having received the result from all workers, glues all in one file.
Is it a good idea to make employees through Task? will there be problems with the fact that the process of the employee must return a large amount of data?
or perhaps it is better to make a pool of employees with GenServer, and make synchronous calls?
File.streamthen send it via a pipe toStream.chunk_byand in its function dispatch the data-chunk to whatever processor you have setup ahead of time (viaNode.spawn) using elixir'ssendmechanism. - GavinBrelstaffFile.stream- GavinBrelstaff