Re:600k concurrent websocket connections on AWS using Node.j...
by xyzzy_plugh on Friday October 11, 2019 @03:36PM
(#21227678)
Is it drastically cheaper to use an NLB without letting AWS terminate TLS? I thought AWS was expensive for TLS termination, generally, unless you need the client locality for lower latency.
[ Parent
| on HN ]
Re:600k concurrent websocket connections on AWS using Node.j...
by windlep on Saturday October 12, 2019 @12:08AM
(#21230611)
Yes, if you terminate TLS its drastically cheaper. Without TLS, each NLB unit lets you have 100,000 concurrent connections. With TLS, a single unit is 3,000 connections. Similar pricing occurs with ALB's.
Terminating TLS yourself incurs some CPU cost and a bit more memory cost. How much CPU/memory is eaten depends on the efficiency of your code. Our Rust implementation roughly matches C code efficiency, so we could handle terminating TLS ourselves if ELB stops being feasible at some point.