I'm writing a program that gives data a new format. This new format is given by a script. This script has to be called by another script that passes the data. THe data will be passes as days in a task. So if we have 30 days then a task can look like this: I got 30 days, so I start with day 1. Calls functions and says: "Here is day 1 with data good luck, when you are done report back to me and I will see if i have another day". This will go for all 30 days. A day can have between 0-1440 datapoints.
What is the best way to achieve this? Async or cluster/child proces?
(I have done research for Node async and cluster but still don't know what is the best approach?)