amazon-web-servicesamazon-ec2cloudload-balancingec2-ami

How to route different http post request to same instance using loadbalancer?


I have an application that sends video and a text file on different http post request. I have multiple ec2 instances under a loadbalancer. The video and text from a user must be sent to the same instance. Since I'm using a loadbalancer, is there any way to make sure that the both requests are sent to the same instance? Loadbalancer distributes traffic on multiple instances so I don't want the video to be routed to one instance and the text file to another instance. Can sticky session be used to solve this issue?


Solution

  • Sticky Sessions seems to be an answer for this.