I understand that when configuring an HTTPS load balancer, SSL termination is generally more favored for speed and the ability to inspect the data and perform actions such as add headers, whereas SSL passthrough favors security but uses more processing power. From what I have read, during SSL termination the SSL connection is, as the name implies, terminated when it reaches the load balancer, and typically, from there the load balancer and worker server(s) communicate over plain HTTP. The current configuration I have is like this:
client --https-->x[load balancer]--https-->[server]
Here, the SSL connection is terminated at the load balancer, but from there the load balancer initiates a new HTTPS connection with the destination server.
My question is which solution is faster, SSL passthrough or SSL termination + an additional HTTPS connection?
Note: I am using haproxy + cheap 100Mbps virtual private servers with only 1 vCore per server