It would be great to be able to send multiple simultaneous requests to several urls, but return the fastest response. When it is needed: we have several identical api endpoints, but we need to return the data to the client as quickly as possible. Endpoints can respond at different rates. We send a request to both endpoints, wait for a response from the fastest and return only it. This is an extremely useful pattern in applications where response speed is critical.
It would be great to be able to send multiple simultaneous requests to several urls, but return the fastest response. When it is needed: we have several identical api endpoints, but we need to return the data to the client as quickly as possible. Endpoints can respond at different rates. We send a request to both endpoints, wait for a response from the fastest and return only it. This is an extremely useful pattern in applications where response speed is critical.