Skip to content

Commit

Permalink
Update docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
yang-xiaodong committed Apr 18, 2024
1 parent 8d21991 commit 27ae79a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/content/user-guide/en/cap/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ If `true` then all consumers within the same group pushes received messages to o
Renamed to `EnableSubscriberParallelExecute` option, Please use the new option.

### EnableSubscriberParallelExecute
#### EnableSubscriberParallelExecute

> Default: false
Expand All @@ -156,13 +156,13 @@ If `true`, CAP will prefetch some message from the broker as buffered, then exec
!!! note "Precautions"
Setting it to true may cause some problems. When the subscription method executes too slowly and takes too long, it will cause the retry thread to pick up messages that have not yet been executed. The retry thread picks up messages from 4 minutes (FallbackWindowLookbackSeconds) ago by default , that is to say, if the message backlog of more than 4 minutes (FallbackWindowLookbackSeconds) on the consumer side will be picked up again and executed again

### SubscriberParallelExecuteThreadCount
#### SubscriberParallelExecuteThreadCount

> Default: `Environment.ProcessorCount`
With the `EnableSubscriberParallelExecute` option enabled, specify the number of parallel task execution threads.

### SubscriberParallelExecuteBufferFactor
#### SubscriberParallelExecuteBufferFactor

> Default: 1
Expand Down
6 changes: 3 additions & 3 deletions docs/content/user-guide/zh/cap/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ services.AddCap(config =>
该配置项已被重命名为 `EnableSubscriberParallelExecute`,请使用新选项。

### EnableSubscriberParallelExecute
#### EnableSubscriberParallelExecute

> 默认值: false
Expand All @@ -160,13 +160,13 @@ services.AddCap(config =>
!!! note "注意事项"
设置为 true 可能会产生一些问题,当订阅方法执行过慢耗时太久时,会导致重试线程拾取到还未执行的的消息。重试线程默认拾取4分钟前(FallbackWindowLookbackSeconds 配置项)的消息,也就是说如果消费端积压了超过4分钟(FallbackWindowLookbackSeconds 配置项)的消息就会被重新拾取到再次执行

### SubscriberParallelExecuteThreadCount
#### SubscriberParallelExecuteThreadCount

> Default: `Environment.ProcessorCount`
当启用 `EnableSubscriberParallelExecute` 时, 可通过此参数执行并行处理的线程数,默认值为处理器个数。

### SubscriberParallelExecuteBufferFactor
#### SubscriberParallelExecuteBufferFactor

> Default: 1
Expand Down

0 comments on commit 27ae79a

Please sign in to comment.