O'Reilly logo

Mastering Reactive JavaScript by Erich de Souza Oliveira

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Too Many Sources - Combining Observables

In the last chapter, we learned how we can use different operators to deal with the backpressure problem, learned two different strategies to deal with this problem:

  • Lossy strategy
  • Loss-less strategy

For each strategy, we learned different operators implement a lossy strategy to deal with the back pressure problem. learned the following operators:

  • throttle()
  • sample()
  • debounce()
  • pause()

To implement a loss-less strategy to deal with the back pressure problem we learned the following operators:

  • bufferWithCount()
  • bufferWithTime()
  • bufferWithTimeOrCount()
  • pause() using buffering
  • controlled()

We also learned when to use each strategy, based on the amount of memory we have available and if we can afford ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required