# nanomsg

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [connect-full.txt](https://docs.redpanda.com/connect-full.txt)

---
title: nanomsg
latest-connect-version: 4.117.0
latest-operator-version: v26.2.5
latest-console-tag: v3.14.0
latest-redpanda-tag: v26.2.6
docname: inputs/nanomsg
page-component-name: connect
page-version: master
page-component-version: master
page-component-title: Connect
page-relative-src-path: inputs/nanomsg.adoc
page-edit-url: https://github.com/redpanda-data/rp-connect-docs/edit/main/modules/components/pages/inputs/nanomsg.adoc
description: Consumes messages via Nanomsg sockets (scalability protocols).
page-git-created-date: "2024-05-24"
page-git-modified-date: "2026-11-06"
page-generated-sources:
  - include: connect:components:partial$descriptions/inputs/nanomsg.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
  - include: connect:components:partial$availability/inputs/nanomsg.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
  - include: connect:components:partial$fields/inputs/nanomsg.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
page-generated-content: partial
---

<!-- Source: https://docs.redpanda.com/connect/components/inputs/nanomsg.md -->

Consumes messages via Nanomsg sockets (scalability protocols).

Currently only PULL and SUB sockets are supported.

#### Common

```yml
input:
  label: ""
  nanomsg:
    urls: [] # No default (required)
    bind: true
    socket_type: PULL
    auto_replay_nacks: true
    sub_filters: []
```

#### Advanced

```yml
input:
  label: ""
  nanomsg:
    urls: [] # No default (required)
    bind: true
    socket_type: PULL
    auto_replay_nacks: true
    sub_filters: []
    poll_timeout: 5s
```

## [](#fields)Fields

### [](#auto_replay_nacks)`auto_replay_nacks`

Whether to automatically replay rejected messages (negative acknowledgements, or nacks) at the output level. If the cause of rejections persists, leaving this option enabled can result in back pressure.

Set `auto_replay_nacks` to `false` to delete rejected messages. Disabling auto replays can greatly improve memory efficiency of high throughput streams, as the original shape of the data is discarded immediately upon consumption and mutation.

Requires version 4.27.0 or later.

**Type**: `bool`

**Default**: `true`

### [](#bind)`bind`

Whether the URLs provided should be connected to, or bound as.

**Type**: `bool`

**Default**: `true`

### [](#poll_timeout)`poll_timeout`

The period to wait until a poll is abandoned and reattempted.

**Type**: `string`

**Default**: `5s`

### [](#socket_type)`socket_type`

The socket type to use.

**Type**: `string`

**Default**: `PULL`

**Options**: `PULL`, `SUB`

### [](#sub_filters)`sub_filters[]`

A list of topic prefixes to subscribe to when `socket_type` is `SUB`. A message is received only when its body starts with one of the prefixes, so a single empty filter (`''`) subscribes to everything. A SUB socket requires at least one filter.

**Type**: `array<string>`

**Default**: `[]`

### [](#urls)`urls[]`

A list of URLs to connect to, or to listen on when `bind` is `true`. If an item in the list contains commas, it is split into multiple URLs. A `*` host, such as `tcp://*:5555`, is replaced with `0.0.0.0`.

**Type**: `array<string>`