Skip to content

Commit 6c70664

Browse files
committed
modify README of pubsub example
Signed-off-by: MregXN <[email protected]>
1 parent 0202ab7 commit 6c70664

File tree

1 file changed

+12
-7
lines changed
  • examples/src/main/java/io/dapr/examples/pubsub

1 file changed

+12
-7
lines changed

examples/src/main/java/io/dapr/examples/pubsub/README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -679,15 +679,15 @@ Messages will be subscribed by the gRPC Subscriber and will print the output as
679679
If you run a bulk publisher using following command
680680
681681
<!-- STEP
682-
name: Run Bulk Publisher
683-
match_order: sequential
682+
name: Run Publisher on bulk topic
684683
expected_stdout_lines:
685-
- '== APP == Published the set of messages in a single call to Dapr'
684+
- '== APP == Published message: This is message #0'
685+
- '== APP == Published message: This is message #1'
686686
background: true
687-
sleep: 20
688687
-->
688+
689689
```bash
690-
dapr run --components-path ./components/pubsub --app-id publisher -- java -jar target/dapr-java-sdk-examples-exec.jar io.dapr.examples.pubsub.Publisher testingtopicbulk
690+
dapr run --components-path ./components/pubsub --app-id bulk-publisher -- java -jar target/dapr-java-sdk-examples-exec.jar io.dapr.examples.pubsub.BulkPublisher
691691
```
692692
693693
<!-- END_STEP -->
@@ -824,11 +824,16 @@ For more details on Dapr Spring Boot integration, please refer to [Dapr Spring B
824824
<!-- STEP
825825
name: Cleanup
826826
-->
827+
Use the following command to stop your running http subscriber or gRPC subscriber.
828+
```bash
829+
dapr stop --app-id subscriber
830+
```
831+
<!-- END_STEP -->
832+
After completing publish , the application will automatically exit. However, you can still use the following command to stop your running publisher.
827833
828834
```bash
829835
dapr stop --app-id publisher
830836
dapr stop --app-id bulk-publisher
831-
dapr stop --app-id subscriber
832837
```
833838
834-
<!-- END_STEP -->
839+

0 commit comments

Comments
 (0)