I don't want to have a long running process. But at the same time, want to use Supervisor, and worker processes. How should I go about it?
Scenario: Every midnight I fetch data from an external API using supervised processes.
But I don't want the process to run until next day if the workers complete their job.
In my case, 1 Supervisor, 5 poolboy processes always exist.
Since the erlang processes are cheap, and these are idle, should I have the supervisor part of my applications
and start every time, and leave it idle?
Or should I try to kill the Supervisor when the worker processes are done?
When I do :observer.start
I could see few of my dependency packages have processes started. Is this okay? When should I worry about the number of processes?