Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • I think the scope of this question is too broad. Partly because unless you give more details, there are a bunch of ways to solve this problem: e.g. routing to available countries could at least be solved at the initial loading of the page. There are perhaps many more cogwheels for this to adjust. The general answer would be with good design but this answer would be of no help. Commented Sep 7, 2019 at 20:59
  • The race conditions might be telling you that you need to synchronize these executions. Or break the execution and redirect immediately when errors happen. Or wait until all the processes have finished for solving the final state of "internalError". Commented Sep 9, 2019 at 13:38