Hi!
I’m learning Elixir and I find it amazing. At the moment I’m trying to understand and learn to properly use concurrency.
I have the following problem: I have multiple (thousands) of xml files I need to process and export specific information to csv file. I thought about the following structure:
- Process that holds the paths to the files (PathDispatcher)
- Multiple processes that ask PathDispatcher for paths, process the file and send the result to
- ResultGatherer which saves the results to csv file as they come.
I am able to write 1 and 3 using GenServer (is it the best option?), but can’t figure how to write 2. Could you give me any hints how to deal with that?
Cheers,
r00s