Link communication method
flowchart LR
A[Alice] --> H[HTTP Relay]
H[HTTP Relay] --> B[Bob]
Link
communication method provides HTTP client to HTTP client synchronous one-directional data transfers.
Link
communication method implements producer -> consumer pattern.
A producer sends data using POST
method, consumer requests using GET
method.
The producer can transfer to the consumer request body and URL query parameters.
Communication Sequence Diagram
The producer is sending “My message” string to the consumer.
sequenceDiagram
participant A as Producer
participant H as HTTP Relay Server
participant B as Consumer
par Request
A->>H: POST link/mychan
Note left of H: Request body: "My message"
and
B->>H: GET link/mychan
end
par Response
H->>A: Response body: empty
and
H->>B: Response body: "My message"
end
par - block parts are parallel and can happen in any order.