Server A requests server B, timeout does not respond or returns incorrect data, what is the cause of the problem?

when I was at the front end of the Tencent interview the day before yesterday, I was asked a server question: when server A requests server B, the timeout does not respond or the wrong data is returned. What is the cause of the problem? How to locate these problems? How should we solve such a problem?
(personal knowledge of the server is still relatively small, so here to consult the server god, thank you very much. )

Jul.20,2021

data packet loss or sticking


timeout failure to respond is a network problem.
the data error returned is the problem of the backend, either the backend reports an error, or the data given by the backend is not in the agreed format.
locate these problems: grab the packet and see what data is returned.
solve these problems: at this time, you should communicate with the backend to see if the code is wrong with bug or whether the returned data is in the wrong format.

Menu