updated smaller collections for manual
This commit is contained in:
44
collections/developers/internals/rmb/uml/peer.md
Normal file
44
collections/developers/internals/rmb/uml/peer.md
Normal file
@@ -0,0 +1,44 @@
|
||||
<h1> RMB Peer </h1>
|
||||
|
||||
<h2> Table of Contents </h2>
|
||||
|
||||
- [Introduction](#introduction)
|
||||
- [Example](#example)
|
||||
|
||||
***
|
||||
|
||||
## Introduction
|
||||
|
||||
We present an example of RMB peer. Note that the extension for this kind of file is `.wsd`.
|
||||
|
||||
## Example
|
||||
|
||||
```
|
||||
@startuml RMB
|
||||
|
||||
participant "Local Process" as ps
|
||||
database "Local Redis" as redis
|
||||
participant "Rmb Peer" as peer
|
||||
|
||||
participant "Rmb Relay" as relay
|
||||
note across: Handling Out Request
|
||||
peer --> relay: Establish connection
|
||||
|
||||
ps -> redis: PUSH message on \n(msgbus.system.local)
|
||||
redis -> peer : POP message from \n(msgbus.system.local)
|
||||
|
||||
peer -> relay: message pushed over the websocket to the relay
|
||||
...
|
||||
relay -> peer: received response
|
||||
peer -> redis: PUSH over $msg.reply_to queue
|
||||
...
|
||||
note across: Handling In Request
|
||||
relay --> peer: Received a request
|
||||
peer -> redis: PUSh request to `msgbus.$cmd`
|
||||
redis -> ps: POP new request msg
|
||||
ps -> ps: Process message
|
||||
ps -> redis: PUSH to (msgbus.system.reply)
|
||||
redis -> peer: POP from (msgbus.system.reply)
|
||||
peer -> relay: send response message
|
||||
@enduml
|
||||
```
|
40
collections/developers/internals/rmb/uml/relay.md
Normal file
40
collections/developers/internals/rmb/uml/relay.md
Normal file
@@ -0,0 +1,40 @@
|
||||
<h1> RMB Peer </h1>
|
||||
|
||||
<h2> Table of Contents </h2>
|
||||
|
||||
- [Introduction](#introduction)
|
||||
- [Example](#example)
|
||||
|
||||
***
|
||||
|
||||
## Introduction
|
||||
|
||||
We present an example of RMB relay. Note that the extension for this kind of file is `.wsd`.
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
```
|
||||
@startuml RMB
|
||||
actor "Peer 1" as peer1
|
||||
participant "Relay 1" as relay1
|
||||
participant "Relay 2" as relay2
|
||||
actor "Peer 2" as peer2
|
||||
actor "Peer 3" as peer3
|
||||
|
||||
peer1 --> relay1: Establish WS connection
|
||||
peer2 --> relay1: Establish WS connection
|
||||
peer3 --> relay2: Establish WS connection
|
||||
|
||||
peer1 -> relay1: Send message (Envelope)\n(destination "Peer 2")
|
||||
relay1 -> peer2: Forward message directly
|
||||
|
||||
peer1 -> relay1: Send message (Envelope)\n(destination "Peer 3")
|
||||
note right
|
||||
"Peer 3" does not live on "Relay 1" hence federation is
|
||||
needed
|
||||
end note
|
||||
relay1 -> relay2: Federation of message for\n Peer 3
|
||||
relay2 -> peer3: Forward message directly
|
||||
@enduml
|
||||
```
|
Reference in New Issue
Block a user