github.com/Jeffail/benthos/v3@v3.65.0/website/docs/components/outputs/nanomsg.md (about)

     1  ---
     2  title: nanomsg
     3  type: output
     4  status: stable
     5  categories: ["Network"]
     6  ---
     7  
     8  <!--
     9       THIS FILE IS AUTOGENERATED!
    10  
    11       To make changes please edit the contents of:
    12       lib/output/nanomsg.go
    13  -->
    14  
    15  import Tabs from '@theme/Tabs';
    16  import TabItem from '@theme/TabItem';
    17  
    18  
    19  Send messages over a Nanomsg socket.
    20  
    21  ```yaml
    22  # Config fields, showing default values
    23  output:
    24    label: ""
    25    nanomsg:
    26      urls:
    27        - tcp://localhost:5556
    28      bind: false
    29      socket_type: PUSH
    30      poll_timeout: 5s
    31      max_in_flight: 1
    32  ```
    33  
    34  Currently only PUSH and PUB sockets are supported.
    35  
    36  ## Performance
    37  
    38  This output benefits from sending multiple messages in flight in parallel for
    39  improved performance. You can tune the max number of in flight messages with the
    40  field `max_in_flight`.
    41  
    42  ## Fields
    43  
    44  ### `urls`
    45  
    46  A list of URLs to connect to. If an item of the list contains commas it will be expanded into multiple URLs.
    47  
    48  
    49  Type: `array`  
    50  Default: `["tcp://localhost:5556"]`  
    51  
    52  ```yaml
    53  # Examples
    54  
    55  urls:
    56    - tcp://localhost:5556
    57  ```
    58  
    59  ### `bind`
    60  
    61  Whether the URLs listed should be bind (otherwise they are connected to).
    62  
    63  
    64  Type: `bool`  
    65  Default: `false`  
    66  
    67  ### `socket_type`
    68  
    69  The socket type to send with.
    70  
    71  
    72  Type: `string`  
    73  Default: `"PUSH"`  
    74  Options: `PUSH`, `PUB`.
    75  
    76  ### `poll_timeout`
    77  
    78  The maximum period of time to wait for a message to send before the request is abandoned and reattempted.
    79  
    80  
    81  Type: `string`  
    82  Default: `"5s"`  
    83  
    84  ### `max_in_flight`
    85  
    86  The maximum number of messages to have in flight at a given time. Increase this to improve throughput.
    87  
    88  
    89  Type: `int`  
    90  Default: `1`  
    91  
    92