Nats Streaming

Event bus specification of Nats Streaming

NatsStreamingSpec

Belong to EventBusSpec

The EventBus(ClusterEventBus) will provide the configuration to the EventSource and Trigger references in order to generate the corresponding Dapr Pub/Sub Components to get messages from the event bus, and in principle we try to maintain consistency in the relevant parameters. You can get more information by visiting the NATS Streaming pubsub spec.

Field Description
natsURL string NATS server address, e.g. nats://localhost:4222
natsStreamingClusterID string NATS cluster ID, e.g. stan
subscriptionType string Subscriber type, optional: topic, queue
ackWaitTime string (Optional) Refer to Acknowledgements , e.g. 300ms
maxInFlight int64 (Optional) Refer to Max In Flight , e.g. 25
durableSubscriptionName string (Optional) The name of the persistent subscriber. E.g. my-durable
deliverNew bool (Optional) Subscriber options (only one can be used). Whether to send only new messages. Optional: true, false
startAtSequence int64 (Optional) Subscriber options (only one can be used). Set the starting sequence position and status. E.g. 100000
startWithLastReceived bool (Optional) Subscriber options (only one can be used). Whether to set the start position to the latest news place. Optional: true, false
deliverAll bool (Optional) Subscriber options (only one can be used). Whether to send all available messages. Optional: true, false
startAtTimeDelta string (Optional) Subscriber options (only one can be used). Use the difference form to set the desired start time position and state, e.g. 10m, 23s
startAtTime string (Optional) Subscriber options (only one can be used). Set the desired start time position and status using the marker value form. E.g. Feb 3, 2013 at 7:54pm (PST)
startAtTimeFormat string (Optional) Must be used with startAtTime. Sets the format of the time. E.g. Jan 2, 2006 at 3:04pm (MST)

Last modified August 31, 2021: Update docs (ab70662)