components-contrib/pubsub
Shalabh Mohan Shrivastava bcd23db009
Changes to include Package names pubsub/secret stores/state to be consistent with company name (#137)
* [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
2019-11-22 12:46:42 -08:00
..
azure/servicebus Changes to include Package names pubsub/secret stores/state to be consistent with company name (#137) 2019-11-22 12:46:42 -08:00
nats Use consumerID for queue name (#99) 2019-11-04 11:42:21 -08:00
redis Add TLS connection option to Redis pub sub (#96) 2019-11-04 11:00:57 -08:00
Readme.md Azure ServiceBus PubSub Implementation (#93) 2019-11-05 14:50:48 -08:00
envelope.go added cloud events content type (#32) 2019-10-14 12:52:39 -07:00
envelope_test.go Adding license header and updating to MIT license. (#26) 2019-10-09 10:58:08 -07:00
metadata.go Adding license header and updating to MIT license. (#26) 2019-10-09 10:58:08 -07:00
pubsub.go Adding license header and updating to MIT license. (#26) 2019-10-09 10:58:08 -07:00
requests.go Adding license header and updating to MIT license. (#26) 2019-10-09 10:58:08 -07:00

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
}