Salta al contenuto

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 :)

3 Risposte
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.

ESPERTO
con risposta 2 anni fa
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".

con risposta 2 anni fa
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.

ESPERTO
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.