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

cats-effect vs ZIO vs Monix

cats-effect vs ZIO vs Monix

This is the talk that I gave for the August 2019 session of ScalaMDE (https://www.meetup.com/ScalaMDE).

It is a basic introduction to the main differences between cats-effect, ZIO and Monix, comparing their basic abstractions in order to reason about effects as values.

Alejandro Echeverri

August 08, 2019
Tweet

More Decks by Alejandro Echeverri

Other Decks in Programming

Transcript

  1. 01

  2. 01

  3. 02

  4. 02

  5. 02

  6. 02

  7. 02

  8. 02

  9. 02

  10. 02

  11. 02

  12. 02

  13. 03 CompletableFuture in Java, Future is the asynchronous computation handling

    construction in Scala, which comes out of the box but with certain shortcomings.
  14. 03

  15. 03

  16. 03

  17. 03

  18. 05

  19. 05

  20. 05

  21. 05

  22. 05

  23. 05

  24. 06 Effects that may fail with a Throwable and requires

    a dependency in order to run: RIO[R, A]
  25. 06 Effects that may fail with an E or return

    A and doesn’t require a dependency: IO[E, A]
  26. 06 All of the mentioned constructions are type aliases of

    ZIO type, with their respective companion objects
  27. 06

  28. 07

  29. 07

  30. 07

  31. 08

  32. 06

  33. 08

  34. 08

  35. 08

  36. 08

  37. 09