What’s in this post?

This post is aimed at the Scala programmer with some experience pure functional programming with the Cats fp library: https://typelevel.org/cats. We will look at Comonads, a type class closely related to Monads, firstly from an abstract point of view and progressing to a couple of practical, yet simple, examples of using Comonads for interesting applications..

Lagom Microservice Framework

At Yoppworks, we often work with clients to build systems using the Lagom microservice framework. Lagom leverages the Akka and Play libraries and one of its compelling features is the Persistent Entity. Persistent entities represent objects in your system that are written to some external storage using event sourcing. They have an identifier that is used by other systems to reference the entity.

 

Fill in your info below to download your free E-book! 

Show Buttons
Hide Buttons

Get access to the Scala Guide

Join our mailing list to receive the latest news, updates and gated content

You have successfully downloaded the Scala Guide

Get Access to the Monoids For Production Article

Join our mailing list to receive the latest news, updates and gated content

The Monoids For Production page will load in 3-5 seconds

Get access to the Comonads For Life article

Join our mailing list to receive the latest news, updates and gated content

The Comonads For Life page will load in 3-5 seconds

Get access to the article

Join our mailing list to receive the latest news, updates and gated content

The page will load in 3-5 seconds