Pulsar

Detailed documentation on the Pulsar pubsub component

Setup Pulsar


docker run -it \
  -p 6650:6650 \
  -p 8080:8080 \
  --mount source=pulsardata,target=/pulsar/data \
  --mount source=pulsarconf,target=/pulsar/conf \
  apachepulsar/pulsar:2.5.1 \
  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:

apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: <NAME>
  namespace: <NAMESPACE>
spec:
  type: pubsub.pulsar
  metadata:
  - name: host
    value: <REPLACE WITH PULSAR URL> #default is localhost:6650
  - name: enableTLS
    value: <TRUE/FALSE>

Apply the configuration

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