concept two call in category algorithms

This is an excerpt from Manning's book Algorithms and Data Structures in Action.
Finding a perfect solution for race conditions is not easy. In some cases, in many cases, it is impossible. Here, for example, if we consider the fully detailed architecture of figure 7.2, we have several HTTP calls that can have a variable latency, or fail altogether. So, we can’t be sure which one of the two calls to retrieve Google sentiment would return first: assuming the first call finishes first can be reasonable, but can also lead to inefficiency, if for any reason the first call to the data gatherer[16] lasts more than the average. That’s not the worst-case scenario, though: if we decide that the second call to our /sentiment endpoint will wait and re-use the result computed for the first one, and then the calls to data gatherer fails for some reason, the net result will be that both web calls to our web server will fail.