I’m wondering of the best approach to use regarding data coming from worker processes under supervision tree.
Is it better to use state per worker (ie. GenServer, :gen_statem) and restart over when they fail (with maybe mechanism to save data when they are down: ie ETS) or use a cache process which is filled by worker process (ie. Task) ?
The last approach is more centralized instead of the first one which is more distributed/decentralized