fix diagrams
This commit is contained in:
@@ -40,14 +40,14 @@ Subscriptions and messages are handled by a server:
|
|||||||
|
|
||||||
```md
|
```md
|
||||||
**Josh** --(subscribe to "my-channel")-> **Server**
|
**Josh** --(subscribe to "my-channel")-> **Server**
|
||||||
**Josh** <-(subscription confirmed )-- **Server**
|
**Josh** <-(subscription confirmed )-- **Server**
|
||||||
|
|
||||||
**Bob** --(subscribe to "my-channel")-> **Server**
|
**Bob** --(subscribe to "my-channel")-> **Server**
|
||||||
**Bob** <-(subscription confirmed )-- **Server**
|
**Bob** <-(subscription confirmed )-- **Server**
|
||||||
|
|
||||||
**Josh** --("hello" on "my-channel" )-> **Server**
|
**Josh** --("hello" on "my-channel" )-> **Server**
|
||||||
**Josh** <-("hello" on "my-channel" )-- **Server**
|
**Josh** <-("hello" on "my-channel" )-- **Server**
|
||||||
**Bob** <-("hello" on "my-channel" )-- **Server**
|
**Bob** <-("hello" on "my-channel" )-- **Server**
|
||||||
```
|
```
|
||||||
|
|
||||||
## Scalability
|
## 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 and Bob subscribe:
|
||||||
|
|
||||||
**John** --(subscribe to "car-warranty")-> **S1**
|
**John** --(subscribe to "car-warranty")-> **S1**
|
||||||
**John** <-(subscription confirmed )-- **S1**
|
**John** <-(subscription confirmed )-- **S1**
|
||||||
|
|
||||||
**Bob** --(subscribe to "car-warranty")-> **S2**
|
**Bob** --(subscribe to "car-warranty")-> **S2**
|
||||||
**Bob** <-(subscription confirmed )-- **S2**
|
**Bob** <-(subscription confirmed )-- **S2**
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# The servers subscribe:
|
# The servers subscribe:
|
||||||
|
|
||||||
**S1** --(subscribe to "s1-and-s2" )-> **S2**
|
**S1** --(subscribe to "s1-and-s2" )-> **S2**
|
||||||
**S2** --(subscribe to "s1-and-s2" )-> **S1**
|
**S2** --(subscribe to "s1-and-s2" )-> **S1**
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Sending the Message:
|
# Sending the Message:
|
||||||
|
|
||||||
John sends the message to his server
|
John sends the message to his server
|
||||||
**John** --("hello" on: )-> **S1**
|
**John** --("hello" on: )-> **S1**
|
||||||
( - "s1-and-s2" )
|
( - "s1-and-s2" )
|
||||||
( - "car-warranty" )
|
( - "car-warranty" )
|
||||||
|
|
||||||
S2 subscribed to "s1-and-s2", so S1 sends this message to S2
|
S2 subscribed to "s1-and-s2", so S1 sends this message to S2
|
||||||
**S1** --("hello" on: )-> **S2**
|
**S1** --("hello" on: )-> **S2**
|
||||||
( - "s1-and-s2" )
|
( - "s1-and-s2" )
|
||||||
( - "car-warranty" )
|
( - "car-warranty" )
|
||||||
|
|
||||||
Bob subscribed to "car-warranty", so S2 sends this message to Bob
|
Bob subscribed to "car-warranty", so S2 sends this message to Bob
|
||||||
**S2** --("hello" on: )-> **Bob**
|
**S2** --("hello" on: )-> **Bob**
|
||||||
( - "s1-and-s2" )
|
( - "s1-and-s2" )
|
||||||
( - "car-warranty" )
|
( - "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.
|
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.
|
||||||
|
|||||||
Reference in New Issue
Block a user