github.com/Jeffail/benthos/v3@v3.65.0/website/docs/components/processors/parallel.md (about) 1 --- 2 title: parallel 3 type: processor 4 status: stable 5 categories: ["Composition"] 6 --- 7 8 <!-- 9 THIS FILE IS AUTOGENERATED! 10 11 To make changes please edit the contents of: 12 lib/processor/parallel.go 13 --> 14 15 import Tabs from '@theme/Tabs'; 16 import TabItem from '@theme/TabItem'; 17 18 19 A processor that applies a list of child processors to messages of a batch as 20 though they were each a batch of one message (similar to the 21 [`for_each`](/docs/components/processors/for_each) processor), but where each message is 22 processed in parallel. 23 24 ```yaml 25 # Config fields, showing default values 26 label: "" 27 parallel: 28 cap: 0 29 processors: [] 30 ``` 31 32 The field `cap`, if greater than zero, caps the maximum number of 33 parallel processing threads. 34 35 The functionality of this processor depends on being applied across messages 36 that are batched. You can find out more about batching [in this doc](/docs/configuration/batching). 37 38 ## Fields 39 40 ### `cap` 41 42 The maximum number of messages to have processing at a given time. 43 44 45 Type: `int` 46 Default: `0` 47 48 ### `processors` 49 50 A list of child processors to apply. 51 52 53 Type: `array` 54 Default: `[]` 55 56