3 ms·
How is encryption expense different from normal https streaming from a cdn?
by ec109685 8y ago
How is encryption expense different from normal https streaming from a cdn?
- est 8y agomost https connections are ephemeral and limited to connections per domain. WebRTC can spawn large number of p2p connections.
- fabioyy 8y agopacket size of webrtc(rtp) is VERY VERY VERY small, and since they are UDP, each individual packet must be encrypted. ( i can't just encode a big chunk of data and send to the network like tls ). in fact, for scaling a solution that uses "near realtime broadcast", you probably don't want encryption at all. ( afaik you can't disable webrtc encryption. ) in my tests i can get 3x more performance just using rtmp/rtsp. ( ~8000 video streaming connections on a aws c5.xlarge at 800kbit/s ).