Skip to content

Commit 714ea82

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

File tree

1 file changed

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

1 file changed

+15
-12
lines changed

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

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ expected_stdout_lines:
516516
- '== APP == Bulk Subscriber got: This is message #1'
517517
- '== APP == Bulk Subscriber got: This is message #2'
518518
background: true
519-
sleep: 5
519+
sleep: 15
520520
-->
521521

522522
```bash
@@ -627,12 +627,10 @@ match_order: none
627627
expected_stdout_lines:
628628
- '== APP == Subscriber got: This is message #1'
629629
- '== APP == Subscriber got: This is message #2'
630-
- '== APP == Subscriber got from bulk published topic: This is message #2'
631-
- '== APP == Subscriber got from bulk published topic: This is message #3'
632-
- '== APP == Bulk Subscriber got: This is message #1'
633-
- '== APP == Bulk Subscriber got: This is message #2'
630+
- '== APP == Bulk Subscriber got: "This is message #1"'
631+
- '== APP == Bulk Subscriber got: "This is message #2"'
634632
background: true
635-
sleep: 5
633+
sleep: 15
636634
-->
637635
```bash
638636
// stop http subscriber if you have started one.
@@ -679,13 +677,13 @@ Messages will be subscribed by the gRPC Subscriber and will print the output as
679677
If you run a bulk publisher using following command
680678
681679
<!-- STEP
682-
name: Run Bulk Publisher
683-
match_order: sequential
680+
name: Run Publisher on bulk topic
684681
expected_stdout_lines:
685-
- '== APP == Published the set of messages in a single call to Dapr'
682+
- '== APP == Published message: This is message #0'
683+
- '== APP == Published message: This is message #1'
686684
background: true
687-
sleep: 20
688685
-->
686+
689687
```bash
690688
dapr run --components-path ./components/pubsub --app-id publisher -- java -jar target/dapr-java-sdk-examples-exec.jar io.dapr.examples.pubsub.Publisher testingtopicbulk
691689
```
@@ -824,11 +822,16 @@ For more details on Dapr Spring Boot integration, please refer to [Dapr Spring B
824822
<!-- STEP
825823
name: Cleanup
826824
-->
825+
Use the following command to stop your running http subscriber or gRPC subscriber.
826+
```bash
827+
dapr stop --app-id subscriber
828+
```
829+
<!-- END_STEP -->
830+
After completing publish , the application will automatically exit. However, you can still use the following command to stop your running publisher.
827831
828832
```bash
829833
dapr stop --app-id publisher
830834
dapr stop --app-id bulk-publisher
831-
dapr stop --app-id subscriber
832835
```
833836
834-
<!-- END_STEP -->
837+

0 commit comments

Comments
 (0)