跳至內容

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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。