Skip to content

Commit

Permalink
add diagrams to the example
Browse files Browse the repository at this point in the history
  • Loading branch information
sczembor committed Aug 21, 2024
1 parent ae9f8f2 commit 938098d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions articles/062-binary-port.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ Lets illustrate the workflow of using the binary port with a simplified example

### Flow with Sidecar:

```mermaid
sequenceDiagram
Client->Sidecar: JSON-RPC Request
Sidecar->>Node: Binary Request
Node->>Node: Process Request
Node->>Sidecar: Binary Response
Sidecar->>Client: JSON-RPC Response
```

1. **Construct JSON Request:** The client constructs a JSON-RPC request containing the transaction details.
2. **Send to Sidecar:** The request is sent to the sidecar over HTTP.
3. **Sidecar to Node (Binary)**: The sidecar translates the JSON request into a binary request and sends it to the node's binary port.
Expand All @@ -42,6 +51,13 @@ Lets illustrate the workflow of using the binary port with a simplified example

### Flow with Direct Binary Communication:

```mermaid
sequenceDiagram
Client->>Node: Binary Request
Node->>Node: Process Request
Node->>Client: Binary Response
```

1. **Construct Binary Request:** The client directly constructs a binary request containing the transaction details using the appropriate SDK.
2. **Send to Node (Binary)**: The request is sent directly to the node's binary port over TCP.
3. **Node Processing:** The node processes the binary request, executes the transaction, and constructs a binary response.
Expand Down

0 comments on commit 938098d

Please sign in to comment.