Concurrency Limiter Aspect
Concurrency Limiter Aspect: A concurrency limiting aspect for the rule engine. Limit the rule engine to process data concurrently, and if the concurrent number exceeds the limit, the execution will fail.
TIP
This aspect needs to be manually imported.
# Configuration
Field | Type | Description | Default |
---|---|---|---|
max | int | Maximum concurrent number | 0 |
# Usage Example
Reference Example (opens new window)
// Limit the concurrent number to 1
types.WithAspects(
&aspect.NewConcurrencyLimiterAspect(1)
1
2
3
2
3
Edit this page on GitHub (opens new window)
Last Updated: 2024/10/23, 10:13:01