PubNub HTTP Pipelining
Sending messages in parallel and in a Single TCP Packet (one Ethernet Frame) is really easy with PubNub HTTP Pipelining! We provide an example below of the Socket level data you send per message. Note that we support the full Pipelining mechanism for HTTP Pipelining. You may send serially on a single socket without waiting for the response and the responses return in order.
Essentially -- To really make this happen with top tier performance you would follow this recipe:
- Open 100 TCP sockets to geo1.pubnub.com (closest data center) with fallbacks next closest data center of geo2.pubnub.com geo3.pubnub.com.
- Send HTTP/1.1 commands round robin -- without waiting for responses you may continue sending commands! -- Pipelining!
- Add socket fail detect or TIMEOUTs as needed for retries.