You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if we could say "at most 50 tasks fetching URLs at once, and at most 5 of those for any given hostname". So that might look something like:
This will create a dramatic increase in complexity. Considerations include:
If you already have 5 tasks running for host A, and then you keep pulling from urls and they keep being host A, then you may end up doing unbounded buffering.
Worse, if there's a bounded set of possible hosts, then you shouldn't keep pulling for urls if all the possible hosts are already saturated... but how do you know if the key set is bounded?
If the input iterable is a priority queue (like it should be for e.g. a depth-first directory traversal), then buffering items internally will mess up the prioritization
We don't want to keep around lots of meter state for keys that showed up once a while ago but aren't showing up now. We'd like to drop those meter state objects. How can we figure out when it's safe to do that? For a MaxMeter it's just, the current number of tasks is 0. For a TokenBucketMeter, it's more complicated...
Do you support just one key, or multiple keys with different meter sets? Multiple keys dramatically increases the complexity again.
The text was updated successfully, but these errors were encountered:
It would be nice if we could say "at most 50 tasks fetching URLs at once, and at most 5 of those for any given hostname". So that might look something like:
This will create a dramatic increase in complexity. Considerations include:
urls
and they keep being host A, then you may end up doing unbounded buffering.urls
if all the possible hosts are already saturated... but how do you know if the key set is bounded?MaxMeter
it's just, the current number of tasks is 0. For aTokenBucketMeter
, it's more complicated...The text was updated successfully, but these errors were encountered: