# Pulsar

Write messages to an Apache Pulsar server.

## Configuration

| Name          | Type   | Optional | Secret | Description                                                                                                                        |
| ------------- | ------ | -------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------- |
| url           | string | no       | no     | A URL to connect to.                                                                                                               |
| topic         | string | no       | no     | The topic to publish to.                                                                                                           |
| key           | string | yes      | no     | The key to publish messages with. The value defaults to `""`.                                                                      |
| ordering_key  | string | yes      | no     | The ordering key to publish messages with. The value defaults to `""`.                                                             |
| max_in_flight | int    | yes      | no     | The maximum number of messages to have in flight at a given time. Increase this to improve throughput. The value defaults to `64`. |
| auth          | auth   | no       | no     | Optional configuration of Pulsar authentication methods.                                                                           |

### Auth

| Name   | Type   | Optional | Secret | Description                                  |
| ------ | ------ | -------- | ------ | -------------------------------------------- |
| oauth2 | oauth2 | no       | no     | Parameters for Pulsar OAuth2 authentication. |
| token  | token  | no       | no     | Parameters for Pulsar Token authentication.  |
