Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How to deal with events backpressure in Elixir

How to deal with events backpressure in Elixir

In this presentation I quickly introduce what is backpressure and how Elixir GenStage can help us deal with these scenarios.

I also present an Example Project where I compare using and not using GenStage and show the results of doing a HTTp benchmark. Results shown that with GenStage it was possible to double the throughput.

André Freitas

November 21, 2018
Tweet

More Decks by André Freitas

Other Decks in Programming

Transcript

  1. Backpressure in the context of information technology “Backpressure refers to

    the buildup of data at an I/O switch when buffers are full and not able to receive additional data.” https://www.techopedia.com/definition/24131/backpressure
  2. Sensors API Example Sensors API [HTTP - Elixir] API to

    send temperature and wind measurements. Stores measurements Sensor 1 Sensor 2 Sensor 3 Sends measurement Sends measurement Sends measurement