Pulsar

Detailed documentation on the Pulsar pubsub component

Setup Pulsar

  1. docker run -it \
  2. -p 6650:6650 \
  3. -p 8080:8080 \
  4. --mount source=pulsardata,target=/pulsar/data \
  5. --mount source=pulsarconf,target=/pulsar/conf \
  6. apachepulsar/pulsar:2.5.1 \
  7. bin/pulsar standalone

Please refer to the following Helm chart Documentation.

Create a Dapr component

The next step is to create a Dapr component for Pulsar.

Create the following YAML file named pulsar.yaml:

  1. apiVersion: dapr.io/v1alpha1
  2. kind: Component
  3. metadata:
  4. name: <NAME>
  5. namespace: <NAMESPACE>
  6. spec:
  7. type: pubsub.pulsar
  8. version: v1
  9. metadata:
  10. - name: host
  11. value: <REPLACE WITH PULSAR URL> #default is localhost:6650
  12. - name: enableTLS
  13. value: <TRUE/FALSE>

Apply the configuration

Visit this guide for instructions on configuring pub/sub components.

Related links

Last modified February 16, 2021: Merge pull request #1235 from dapr/update-v0.11 (b4e9fbb)