Introduce a ws based /events API that communicates live info about RNode
Description
None
Confluence content
mentioned on
Activity
Show:
Jerry Wang September 9, 2019 at 7:41 AM
Done
Assignee
Reporter
Dominik Zajkowski
Dominik ZajkowskiPriority
Fix versions
Created September 2, 2019 at 11:44 AM
Updated October 23, 2019 at 10:25 PM
Resolved October 3, 2019 at 2:12 PM
Besides WebSocket, you may consider HTTP 1.1 chunked transfer
Twitter uses it in its streaming API.
Comparing to web socket
HTTP chunked transfer is more generic than WS. Any HTTP client which is able to receive response progressively can handle it. Also this means it is more friendly to tranditional network nodes (e.g. WebSocket secure connection cannot be established when there is a proxy which inspects TLS)
HTTP chunked transfer overhead is lower. It does not need handshake nor bit-masking as WS does.
HTTP chunked transfer is half-duplex on sending response while WebSocket is full-duplex. But I don’t think RChain really need full-duplex in occasion when client subscribes events.