A method and apparatus for self-discovering throttling is described. The
system includes a first queue to track a current rate of task completion
and a second queue to track an average rate of task completion over time.
The system further includes a comparator to compare an average of the
first queue and an average of the second queue. The system includes a
throttle to adjust the number of connections based on the results from
the comparator.