@@ -6,12 +6,12 @@ not send or listen to heartbeats.
66
77## Running this example
88
9- To run this example, install the example project depedencies and run the
10- majordomo example script with ` yarn ` :
9+ To run this example, install the example project dependencies and run the
10+ majordomo example script with ` pnpm ` :
1111
1212```
13- > yarn install
14- > yarn majordomo
13+ > pnpm install
14+ > pnpm run majordomo
1515```
1616
1717## Expected behaviour
@@ -20,7 +20,13 @@ The example will start a broker and some workers, then do some requests. The
2020output will be similar to this:
2121
2222```
23+
2324starting broker on tcp://127.0.0.1:5555
25+ starting worker on tcp://127.0.0.1:5555
26+ starting worker on tcp://127.0.0.1:5555
27+ starting worker on tcp://127.0.0.1:5555
28+ ---------- Started -----------
29+ requesting 'cola' from 'soda'
2430requesting 'oolong' from 'tea'
2531requesting 'sencha' from 'tea'
2632requesting 'earl grey, with milk' from 'tea'
@@ -29,33 +35,33 @@ requesting 'cappuccino' from 'coffee'
2935requesting 'latte, with soy milk' from 'coffee'
3036requesting 'espresso' from 'coffee'
3137requesting 'irish coffee' from 'coffee'
32- registered worker 00800041af for 'coffee'
33- dispatching 'coffee' 00800041ab req -> 00800041af
34- registered worker 00800041b0 for 'tea'
35- dispatching 'tea' 00800041a7 req -> 00800041b0
36- registered worker 00800041b1 for 'tea'
37- dispatching 'tea' 00800041a8 req -> 00800041b1
38- dispatching 'tea' 00800041a7 <- rep 00800041b0
39- dispatching 'tea' 00800041a9 req -> 00800041b0
40- received 'oolong' from 'tea'
41- dispatching 'coffee' 00800041ab <- rep 00800041af
42- dispatching 'coffee' 00800041ac req -> 00800041af
43- received 'cappuccino' from 'coffee'
44- dispatching 'tea' 00800041a9 <- rep 00800041b0
45- dispatching 'tea' 00800041aa req -> 00800041b0
46- received 'earl grey, with milk' from 'tea'
47- dispatching 'tea' 00800041a8 <- rep 00800041b1
38+ registered worker 00800041a7 for 'tea'
39+ registered worker 00800041a8 for 'coffee'
40+ registered worker 00800041a9 for 'tea'
41+ dispatching 'tea' 00800041ab req -> 00800041a7
42+ dispatching 'tea' 00800041ac req -> 00800041a9
43+ dispatching 'coffee' 00800041af req -> 00800041a8
44+ dispatching 'tea' 00800041ac <- rep 00800041a9
45+ dispatching 'tea' 00800041ad req -> 00800041a9
4846received 'sencha' from 'tea'
49- dispatching 'tea' 00800041aa <- rep 00800041b0
50- received 'jasmine' from 'tea'
51- dispatching 'coffee' 00800041ac <- rep 00800041af
52- dispatching 'coffee' 00800041ad req -> 00800041af
47+ dispatching 'tea' 00800041ad <- rep 00800041a9
48+ dispatching 'tea' 00800041ae req -> 00800041a9
49+ received 'earl grey, with milk' from 'tea'
50+ dispatching 'coffee' 00800041af <- rep 00800041a8
51+ dispatching 'coffee' 00800041b0 req -> 00800041a8
52+ received 'cappuccino' from 'coffee'
53+ dispatching 'coffee' 00800041b0 <- rep 00800041a8
54+ dispatching 'coffee' 00800041b1 req -> 00800041a8
5355received 'latte, with soy milk' from 'coffee'
54- dispatching 'coffee' 00800041ad <- rep 00800041af
55- dispatching 'coffee' 00800041ae req -> 00800041af
56+ dispatching 'coffee' 00800041b1 <- rep 00800041a8
57+ dispatching 'coffee' 00800041b2 req -> 00800041a8
5658received 'espresso' from 'coffee'
57- dispatching 'coffee' 00800041ae <- rep 00800041af
59+ dispatching 'tea' 00800041ae <- rep 00800041a9
60+ received 'jasmine' from 'tea'
61+ dispatching 'coffee' 00800041b2 <- rep 00800041a8
5862received 'irish coffee' from 'coffee'
63+ dispatching 'tea' 00800041ab <- rep 00800041a7
64+ received 'oolong' from 'tea'
5965timeout expired waiting for 'soda'
60- deregistered worker 00800041b1 for 'tea'
66+ ---------- Stopping -----------
6167```
0 commit comments