Ohara: Add a retry mechanism after an action is made to connector

Created on 15 Aug 2019  路  3Comments  路  Source: oharastream/ohara

Most of our HTTP requests in ohara are async, so our UI should ensure the users receive the update-to-date info when working in pipelines. By adding a retry mechanism (with a maximum retry limit, of course) to guarantee the state in the UI is always sync with the remote services is an inevitable requirement for our Frontend

For this very reason, an example like starting a connector, we should do the following to achieve the requirement we just talk about:

  1. Make a request to the backend to start the service
  2. Retry with GET request to obtain the newest state
  3. If we get the state we're desire, stop retrying and show the state for users

Most helpful comment

/cc @wu87988622

All 3 comments

/cc @wu87988622

@wu87988622 Let's include this functionality in the new async data fetching layer 馃挴

No longer relevant

Was this page helpful?
0 / 5 - 0 ratings