Effects types in Scala - how to choose one
summary
Explains why Scala standard futures are already running (non-cancelable) while Twitter futures are cancelable, and compares Scalaz Task, Monix Task, cats-effect IO and ZIO, claiming cats-effect supports cancelable IO and runs on JVM executors or JS event loop. Notes performance is “neck-to-neck” between cats-effect and Scalaz IO, shows four Hello World implementations across libs, demonstrates wrapping a Future in an IO to defer evaluation and interoperate between effect types.
AI-written summary · about
chapters (7)
- 0:00Introduction to effects
- 3:11Why not use Futures
- 9:12Scala IO and Task
- 12:07Cats Effect IO
- 14:14ZIO IO and purity
- 16:44Interoperability between types
- 19:17Demo and examples
related talks
01h 00mScala. The War of Effects. ZIO vs Cats Effect
43mThe Design of the Scalaz 8 Effect System
31mPick a (Effect) Lane: A comparison of direct-style Scala vs effect systems
40mCats Effect 3
27mBeyond `flatMap`: Is Kyo the Future of Scala Effects?
51mEffects: to be or not to be?
21mFutures: Twitter vs Scala
43mSurviving a world overflowing with effects
