* [Commit - PubSub changes ] Changing the names of the packages directory so to be consistent with name of the company . It is to be noted that package name can not have hyphen "-" in the name. So changing the directory names and putting under company names. For example - servicebus package would be dapr/components-contrib/pubsub/azure/servicebus * Commit 2 - Changes for Secret Stores * Commit 3 - for the state store changes |
||
|---|---|---|
| .. | ||
| azure/servicebus | ||
| nats | ||
| redis | ||
| Readme.md | ||
| envelope.go | ||
| envelope_test.go | ||
| metadata.go | ||
| pubsub.go | ||
| requests.go | ||
Readme.md
Pub Sub
Pub Subs provide a common way to interact with different message bus implementations to achieve reliable, high-scale scenarios based on event-driven async communications, while allowing users to opt-in to advanced capabilities using defined metadata.
Currently supported pub-subs are:
- Redis Streams
- NATS
- Azure Service Bus
Implementing a new Pub Sub
A compliant pub sub needs to implement the following interface:
type PubSub interface {
Init(metadata Metadata) error
Publish(req *PublishRequest) error
Subscribe(req SubscribeRequest, handler func(msg *NewMessage) error) error
}