How important it is to avoid cost back and forth depends on a few things.
First, how many rounds do you make? If you do 3 or 4, you can probably ignore the advice if listening to it would be painful.
Secondly, how much will it cost you to travel to your setting? If switching back to db takes 100 ms, this should be avoided much more seriously than if it takes only 2 ms.
Thirdly, how time sensitive is the process that should fulfill requests? If you make the user wait, you really should pay attention to it - users hate to wait! If you use an Ajax process that starts off-screen and does some work, this may be less important (although you still have to keep track of timeouts, maybe).
Basically, Googleβs advice is good in that wasted time is wasted. However, depending on your particular case, wasted time can be more or less serious for you, your system, and your users.
source share