Skip to content

Commit

Permalink
Updated documentation to fix an error in the description of GroupConc…
Browse files Browse the repository at this point in the history
…urrent.
  • Loading branch information
yang-xiaodong committed Jan 2, 2025
1 parent 09f2a05 commit d582120
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/content/user-guide/en/cap/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Group corresponds to different items in different Brokers:
Set the parallelism of concurrent execution for subscribers by specifying the value of the `GroupConcurrent` parameter. Concurrent execution means that it needs to be on an independent thread, so if you do not specify the `Group` parameter, CAP will automatically create a Group using the value of `Name`.

!!! Note
If you have multiple subscribers configured with the same Group and have also set the `GroupConcurrent` value for them, only the first configured value will take effect.
If you have multiple subscribers configured with the same Group and have also set the `GroupConcurrent` value for them, Then the degree of parallelism is the sum of the values in the group.
This setting applies only to new messages; retried messages are not subject to the concurrency limit.

## Custom configuration
Expand Down
2 changes: 1 addition & 1 deletion docs/content/user-guide/zh/cap/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Group 在不同的 Broker 有不同的对应项。
通过指定 `GroupConcurrent` 参数的值来设置订阅者并行执行的并行度。并行执行意味着其需要位于独立线程中,因此如果你没有指定 `Group` 参数,则 CAP 将会以 `Name` 的值自动创建一个 Group。

!!! Note "注意"
如果你有多个订阅者都设置为了相同的 Group,并且也给订阅者都设置了 `GroupConcurrent` 的值,则只会有(第)一个设置的值生效
如果你有多个订阅者都设置为了相同的 Group,并且也给订阅者都设置了 `GroupConcurrent` 的值,则并行度为组内值的和
本设置只对新消息生效,重试的消息不受并行度限制。

## 自定义配置项
Expand Down

0 comments on commit d582120

Please sign in to comment.