Image for post
Image for post

A semi quick guide to Reliable Stream Processing with RxJS

Hendrik Swanepoel
Jun 15, 2017 · 10 min read

A Promise only executes it’s logic once

When working with a stream

A promise tied directly to an event stream is difficult to manage

Modelling for a stream

Handling events through a stream

Retrying items

An indefinite RxJS retry strategy

Adding a retry limit

Adding a maximum retry limit

Adding a delay between retries

Adding a delay between retries per item

Subscribing to the stream processing results

Publish results to streams

Making it generic

A generic API to handle the steam processing

Conclusion

Links

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

HackerNoon.com

#BlackLivesMatter

By HackerNoon.com

how hackers start their afternoons. the real shit is on hackernoon.com. Take a look

By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.

Check your inbox
Medium sent you an email at to complete your subscription.

Hendrik Swanepoel

Written by

Full-stack JS Engineer. @over @pluralsight. #nodejs #reactjs #typescript #mongodb #mobx #rxjs

HackerNoon.com

Elijah McClain, George Floyd, Eric Garner, Breonna Taylor, Ahmaud Arbery, Michael Brown, Oscar Grant, Atatiana Jefferson, Tamir Rice, Bettie Jones, Botham Jean

Hendrik Swanepoel

Written by

Full-stack JS Engineer. @over @pluralsight. #nodejs #reactjs #typescript #mongodb #mobx #rxjs

HackerNoon.com

Elijah McClain, George Floyd, Eric Garner, Breonna Taylor, Ahmaud Arbery, Michael Brown, Oscar Grant, Atatiana Jefferson, Tamir Rice, Bettie Jones, Botham Jean

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store