diff --git a/README.md b/README.md index ac3ef4d..7e85666 100644 --- a/README.md +++ b/README.md @@ -40,14 +40,14 @@ Subscriptions and messages are handled by a server: ```md **Josh** --(subscribe to "my-channel")-> **Server** -**Josh** <-(subscription confirmed )-- **Server** +**Josh** <-(subscription confirmed )-- **Server** -**Bob** --(subscribe to "my-channel")-> **Server** -**Bob** <-(subscription confirmed )-- **Server** +**Bob** --(subscribe to "my-channel")-> **Server** +**Bob** <-(subscription confirmed )-- **Server** -**Josh** --("hello" on "my-channel" )-> **Server** -**Josh** <-("hello" on "my-channel" )-- **Server** -**Bob** <-("hello" on "my-channel" )-- **Server** +**Josh** --("hello" on "my-channel" )-> **Server** +**Josh** <-("hello" on "my-channel" )-- **Server** +**Bob** <-("hello" on "my-channel" )-- **Server** ``` ## Scalability @@ -77,36 +77,36 @@ Then, John will send his messages on both "s1-and-s2" and "car-warranty". As alw # John and Bob subscribe: **John** --(subscribe to "car-warranty")-> **S1** -**John** <-(subscription confirmed )-- **S1** +**John** <-(subscription confirmed )-- **S1** -**Bob** --(subscribe to "car-warranty")-> **S2** -**Bob** <-(subscription confirmed )-- **S2** +**Bob** --(subscribe to "car-warranty")-> **S2** +**Bob** <-(subscription confirmed )-- **S2** --- # The servers subscribe: -**S1** --(subscribe to "s1-and-s2" )-> **S2** -**S2** --(subscribe to "s1-and-s2" )-> **S1** +**S1** --(subscribe to "s1-and-s2" )-> **S2** +**S2** --(subscribe to "s1-and-s2" )-> **S1** --- # Sending the Message: John sends the message to his server -**John** --("hello" on: )-> **S1** -( - "s1-and-s2" ) -( - "car-warranty" ) +**John** --("hello" on: )-> **S1** + ( - "s1-and-s2" ) + ( - "car-warranty" ) S2 subscribed to "s1-and-s2", so S1 sends this message to S2 -**S1** --("hello" on: )-> **S2** -( - "s1-and-s2" ) -( - "car-warranty" ) +**S1** --("hello" on: )-> **S2** + ( - "s1-and-s2" ) + ( - "car-warranty" ) Bob subscribed to "car-warranty", so S2 sends this message to Bob -**S2** --("hello" on: )-> **Bob** -( - "s1-and-s2" ) -( - "car-warranty" ) +**S2** --("hello" on: )-> **Bob** + ( - "s1-and-s2" ) + ( - "car-warranty" ) ``` This requires John to know of "s1-and-s2" and, obviously, Bob to subscribe to "car-warranty". Jane and Alice could agree on their own primary channel and use "s1-and-s2" just like John did.