Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the App Robust to Race Conditions #35

Open
amalnanavati opened this issue May 5, 2023 · 0 comments
Open

Make the App Robust to Race Conditions #35

amalnanavati opened this issue May 5, 2023 · 0 comments
Labels
critical-path Issues that are critical path for deployment

Comments

@amalnanavati
Copy link
Contributor

With the app and robot being different devices, our feeding system is fundamentally a distributed system that communicates over the network. As a result of that, we have to consider what race conditions might arise and what our system should do in those circumstances.

For example, say the web app calls a ROS action, it completes, but because of a broken pipe or temporary networking issue the web app doesn't receive the response. In the current system, the user would be stuck on that state forever, which is undesirable. On the other hand, we could add app functionality so that if the response is not received within n seconds, a button appears that lets the user move on to the next state. Or a button appears that lets the user re-try the same action. Or maybe that is not necessary, because the user might just refresh the page.

With that example in mind, the goal of this issue is to:

  1. Identify areas in the web app where race conditions might exist and result in undesirable outcomes for the user.
  2. Understand what options the user would like out of the system in those scenarios.
  3. Implement those features, so the user is never left stuck or without recourse in the case of a race condition.
@amalnanavati amalnanavati added the critical-path Issues that are critical path for deployment label May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
critical-path Issues that are critical path for deployment
Projects
None yet
Development

No branches or pull requests

1 participant