update for multi pubsub (#751)

Co-authored-by: LM <lemai>
Co-authored-by: Charlie Stanley <charlie.stanley@microsoft.com>
This commit is contained in:
Leon Mai 2020-08-20 09:51:44 -07:00 committed by GitHub
parent 21f5bd57b5
commit a667eb4d12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 5 deletions

View File

@ -19,7 +19,7 @@ For this guide, we'll use Redis Streams, which is also installed by default on a
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: messagebus
name: pubsub
namespace: default
spec:
type: pubsub.redis
@ -50,6 +50,7 @@ const port = 3000
<b>app.get('/dapr/subscribe', (req, res) => {
res.json([
{
pubsubname: "pubsub",
topic: "newOrder",
route: "orders",
pubsubName: "messagebus"
@ -76,6 +77,7 @@ To consume messages from a topic, start a web server in the programming language
app.get('/dapr/subscribe', (req, res) => {
res.json([
{
pubsubname: "pubsub",
topic: "onCreated",
route: "custom/path",
pubsubName: "messagebus"

View File

@ -35,7 +35,7 @@ Now, configure `deploy/redis.yaml`, paying attention to the hostname containing
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: messagebus
name: pubsub
namespace: default
spec:
type: pubsub.redis

View File

@ -29,7 +29,7 @@ Here is an example of three applications and three topics:
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: messagebus
name: pubsub
namespace: default
spec:
type: pubsub.redis
@ -73,7 +73,7 @@ Here is an example of three allowed topics:
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: messagebus
name: pubsub
namespace: default
spec:
type: pubsub.redis
@ -97,7 +97,7 @@ Here is an example of three applications and two topics:
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: messagebus
name: pubsub
namespace: default
spec:
type: pubsub.redis
@ -129,3 +129,5 @@ The table below shows which application is allowed to subscribe to the topics:
| B | | | X |
No other topics can be used, only A and B.
Pub/sub scopes are per pub/sub. You may have pub/sub component named `pubsub` that has one set of scopes, and another `pubsub2` with a different set. The name is the `metadata.name` field in the yaml.