Please log in to watch this conference skillscast.
During this talk, you will learn how to create a web service using Akka HTTP and Cats' Free, IO, Writer and Reader monads. The aim is to clearly delimit pure and impure code such that the former can be unit tested and reasoned about whilst the latter can be minimized.
The talk will have three parts. The first will show how to 'free' an Algebraic Data Type (ADT) that describes side effecting operations using the Free monad and an interpreter. The second part will introduce the IO monad and demonstrate how it lets you be both lazy and explicit when dealing with asynchronous operations. And in the final part, we will explore how to use the Reader and Writer monads to read configuration and write logs without sacrificing purity.
YOU MAY ALSO LIKE:
- Reactive in practice: web services with Scala and AWS (SkillsCast recorded in December 2015)
- Crafting Code with Sandro Mancuso (Online Course on 14th - 15th October 2021)
- Essential Effects | ScalaCon Workshop (Online Course on 25th - 28th October 2021)
- ScalaCon 2021: November Edition (Online Conference on 2nd - 5th November 2021)
- Accessibility Testing: Why and How to involve People with Disabilities (Online Meetup on 28th October 2021)
- TPP: From Dumb, to Specific, to Generic (SkillsCast recorded in July 2021)
- Journey to the Centre of the JVM (SkillsCast recorded in May 2021)
Type-Driven Development in Practice: Cats and Akka HTTP
Matt Roberts is a Lead Consultant at a Disney Streaming Services. Engineering web-scale software using Scala, AWS and FP with the help of awesome people. Matt has used Scala since 2.8 and enjoys using the type system and functional concepts to make great software.