From c63784fc8d3554e0e5fe1f718fcd9494eb364022 Mon Sep 17 00:00:00 2001 From: Yaron Schneider Date: Mon, 2 Mar 2020 11:48:59 -0800 Subject: [PATCH] remove broadcast part (#374) --- reference/api/pubsub.md | 77 +---------------------------------------- 1 file changed, 1 insertion(+), 76 deletions(-) diff --git a/reference/api/pubsub.md b/reference/api/pubsub.md index ac8125fb2..06dc3171d 100644 --- a/reference/api/pubsub.md +++ b/reference/api/pubsub.md @@ -1,4 +1,4 @@ -# Pub Sub and Broadcast +# Pub Sub ## Publish a message to a given topic @@ -33,81 +33,6 @@ curl -X POST http://localhost:3500/v1.0/publish/deathStarStatus \ }' ``` -## Broadcast a message to a list of recipients - -This endpoint lets you publish a payload to a named list recipients who are listening on a given ```topic```. -The list of recipients may include the unique identifiers of other apps (used by Dapr for messaging) and also Dapr bindings. - -### HTTP Request - -```http -POST http://localhost:/v1.0/publish/ -``` - -### HTTP Response codes - -Code | Description ----- | ----------- -200 | Message delivered -500 | Delivery failed - -### URL Parameters - -Parameter | Description ---------- | ----------- -daprPort | the Dapr port -topic | the name of the topic - -> Example of publishing a message to another Dapr app: - -```shell -curl -X POST http://localhost:3500/v1.0/publish \ - -H "Content-Type: application/json" \ - -d '{ - "topic": "DeathStarStatus", - "data": { - "status": "completed" - }, - "to": [ - "otherApp" - ] - }' -``` - -> Example of publishing a message to an Dapr binding: - -```shell -curl -X POST http://localhost:3500/v1.0/publish \ - -H "Content-Type: application/json" \ - -d '{ - "topic": "DeathStarStatus", - "data": { - "status": "completed" - }, - "to": [ - "azure-queues" - ] - }' -``` - -> Example of publishing a message to multiple consumers in parallel: - -```shell -curl -X POST http://localhost:3500/v1.0/publish \ - -H "Content-Type: application/json" \ - -d '{ - "eventName": "DeathStarStatus", - "data": { - "status": "completed" - }, - "to": [ - "otherApp", - "azure-queues" - ], - "concurrency": "parallel" - }' -``` - ## Handling topic subscriptions In order to receive topic subscriptions, Dapr will invoke the following endpoint on user code: