ruby on rails - How might Apache cause duplicate requests? -
I have two rail applications that talk to each other. A few times a day requests App A to show a duplicate (or triple / quadruple) in App B. All outbound and inbound requests are logged. Logs show that the app is sending an outbound request and that App B receives two or more requests during the same second.
App B is behind Behind the Apache and Amazon Lowsticks Load Balancer.
I'm not sure where to ask about this issue, to ask about where or even what questions to ask. If you want more data, I would love to provide it. The possibility of retries is the Amazon flexible load balancer or some network component (eg router, for example).
Actually, a idle time is exhausted at some level in the request request chain. If it does not return the appropriate HTTP 5xx status to the time-out customer (for example, it can only shut down the connection quietly), then the source of the timeout and the potentially dependent on the component between the client Decide to try how they are configured.
Tracking below can be very challenging to try which component reasons. My recommendation is to ensure that your Rail app always responds instantly to each other if the requests Can not be completed quickly, so consider a background / voting solution or non-HTTP communication method (for example WebSketts).
Comments
Post a Comment