Skip to content

A pretty advanced retry-logic built with rxjs that is surprisingly simple

Notifications You must be signed in to change notification settings

etiennedi/redux-observable-retry-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A redux observable showing how to do retries

How to satisfy your product owner

Image your product owner would list the following Acceptance Criteria:

  • When an API request fails, the app will retry
  • Between each retry there is a 5 second delay
  • If a new request is started while a request or delay is running, the old request must be aborted
  • During a 5 second waiting period the user must be informed every second about when the next retry will occur
  • When the request finally succeds, all retrying must stop at once

How many story points would you estimate this story?

I'd say about a 3 ... at the maximum.

In fact this becomes quite easy with redux-observable and RxJS 5. Check out this example.

About

A pretty advanced retry-logic built with rxjs that is surprisingly simple

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published