STACK = websocket & socketIO
Websocket
1. Push mechanism
pooling
websocket
2. Websocket vs Http
websocket 一開始需要 http建立連接, 之後就不用http了
HTTP
Websocket
Pattern
request-response
bi-direction
# parallel connections
~10 per server
1024
Load balancing || proxy
Standard
Complex
Support on all browsers
YES (100%)
~YES(90%)
Drop client detection
No
Yes
Overhead
Moderate overhead per request-response
Moderate overhead to establish connection, minimum overhead per message
protocl
Level 7
Level 7
SocketIO
1. Basic
1.1. Server in node.js
1.2. Client in react.js
2. Advance
private communication
broadcast
namespaces & rooms
Last updated
Was this helpful?