Functional Streams for Scala with FS2
What you'll learn
- Understand the differences between Lists and Streams
- Implement memory efficient tasks via streaming (e.g. file i/o)
- Build complex flows for your application with streams
- Handle concurrency and resource safety declaratively
- Working knowledge of the Scala language
- Knowledge of the Cats Effect library
Many applications involve dealing with large flows of data. Examples are processing files in ETL jobs, reading results from a database or getting a big response from http calls. Handling large amounts of data often means sacrificing either readability or performance.
With streams, you can get the best of both worlds:
- Data is processed using a constant amount of memory, even if the total amount of data is very large
- The processing is built declaratively as if you were dealing with regular Lists or Sequences, with high level methods such as map, filter and flatMap
Furthermore, streams in FS2 are effect-aware. They work in the context of an effect monad like IO, which enables them to do all sorts of useful stuff such as processing elements in parallel, throttling, retrying on failure and many more.
In this course we will turn streams inside out and learn things like:
- Create and combine pure streams
- Add effects to our streams and learn how to compose them
- Handle errors & resources safely
- Apply patterns involving time, such as retries, throttling and debouncing.
- Build our own stream transformations with Pulls and Pipes
- Handle concurrency using many different patterns
- Communicate between streams using primitives such as Signals, Channels, Topics and Queues
Join me in this journey and add yet another amazing tool to your functional programming toolkit!
Who this course is for:
- Scala functional developers with some experience who want to add functional stream to their toolkit
My name is Leandro Galvan.
I'm a computer scientist from Rosario, Argentina and have been a software engineer for over a decade.
I'm a fierce believer of constant learning, reason why I'm constantly reading books, blogs, taking courses, and trying new and fun stuff!
Over the years I've grown particularly fond of sharing my knowledge with other people in a pragmatic and approachable way.
My current interests are Scala and functional programming. Also Japanese and languages in general :).