neerajdngl
neerajdngl

Reputation: 200

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?

Upvotes: 1

Views: 594

Answers (1)

Dmitry Mukhin
Dmitry Mukhin

Reputation: 6967

Sticky Sessions seems to be an answer for this.

Upvotes: 0

Related Questions