跳至内容

Load Balancer listener rule lost POST params

0

We have 2 beanstalks and we need send traffic from one webservice from one to another...

we created a listener rule and the traffic for that webservice has been redirected from "A" beanstalk to "B" beanstalk but if I add a log to that webservice in "B" the POST params are lost (if I add log in that webservice in "A" beanstalk then i could see POST params)

What i'm doing incorrectly? maybe is not possible create a redirect listener rule for POST ?

Thank you for time :)

已提问 2 年前381 查看次数
3 回答
1

I don't think there's any good and supported way of passing POSTs between applications with HTTP redirects. Your application code or the form POST action in your application should call or point to the other application's URL if a request is to be made from the client to the other application, without passing through the first application.

专家
已回答 2 年前
0

Thanks Leo K,

The idea is that the application points to the new beanstalk "B" for those requests... but until all the users have the new version I want to redirect the traffic from that webservice (in beanstalk "A") to the new beanstalk "B", and I would like to do it from the balancer to avoid consumption in beanstalk "A".

已回答 2 年前
0

If the load balancer sitting in front of the environment "A" can also reach "B", perhaps you could configure a listener rule to send requests for the URL paths where the POST requests are sent in application "A" to the corresponding URL in "B"? The main limitations would be that the URLs (including hostnames) would have to match in environments "A" and "B", because an ALB isn't able to rewrite requests, and that the same load balancer would have to have connectivity to A and B.

专家
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。