ELB(Elastic load balancer) can be used to make some compute instances(EC2) sitting in public subnet, public facing(to Internet), by assigning a public IP to ELB, where clients can talk to ELB.
Case 1
EC2 instances(having only private IP) in public subnet, receive http requests via ELB.
In case 1, How does EC2 instance respond back to client? Is it via ELB?
Case 2
EC2 instances(having both private IP & public) in public subnet receive http requests via ELB.
here, it says: "When you receive incoming traffic through the load balancer, the responses will go out the same way."
In case 2, How does EC2 instance respond back to clients? Does EC2 instance sent directly from the public IP address of your instance out to the Internet?