Concurrent fetch calls
Hello ! Very new to effect. I'm trying to do a little script. The idea is as follows;
1. Grab a sitemap.xml from a fetch request.
2. Parse said sitemap.xml and perform one req per each of its items.
3. Try to make up to 10 concurrent fetch request. But no more.
This is the implementation I've done
A few questions that arises are.
- How can I get ride of the
- I feel the Effect.all runs the Effects concurrently but not in parallel is this true ? I might be mixing topics.
- Any other improvement you feel is necessary is appreciated.
1. Grab a sitemap.xml from a fetch request.
2. Parse said sitemap.xml and perform one req per each of its items.
3. Try to make up to 10 concurrent fetch request. But no more.
This is the implementation I've done
A few questions that arises are.
- How can I get ride of the
console.log and use Effects logs, since I believe I have to yield them I need to make everything a generator ?- I feel the Effect.all runs the Effects concurrently but not in parallel is this true ? I might be mixing topics.
- Any other improvement you feel is necessary is appreciated.
