Limit (Throttle/Debounce)

A rate Limit confines the maximum number of incoming request that could be sent to local workers.

// this will allow the job service tokens to be refilled every 20 millisecond (50 requests per second)
// at any time, the maximum number of job requests running in parallel is 20
collaborate.Set("Limit", 
                "/core/ExampleJobHandler"[, 20*time.Millisecond][, 20])

The default value of Limit is 1000 Jobs to be processed per second, the default value of Job request burst (peak load) is 1000 Jobs running in parallel.



results matching ""

    No results matching ""