Use ZLayer.make to simplify layer creation
With simple ZIO layer creation, it’s convenient to use +`, `>>>` and `>>
to compose layers.
When layers and dependencies get more complex, ZLayer.make is there to help.
With simple ZIO layer creation, it’s convenient to use +`, `>>>` and `>>
to compose layers.
When layers and dependencies get more complex, ZLayer.make is there to help.
We’ll compare some code written with Either with similar code written using Exceptions and see how they are the same and how they differ.
Preferable you start a ZIO application with just one runtime.unsafeRun
.
But when you’re migrating an old application to ZIO, you likely have multiple places to do runtime.unsafeRun
.
We will investigate how to deal with the environment (layers).
We’ll look at some examples of different kinds of exceptions and how we can deal with them in ZIO.
In Akka Typed we need an ActorContext to create new actors.
This poses some problems if we want to create an actor inside a class that’s not an actor. We can pass around an ActorContext from a (higher level) actor. But if this is a longer-lived class, we have to keep in mind that this ActorContext is only valid during construction. So it’s generally frowned upon to pass around the ActorContext.
We’re going to explore how we can use a default value for a value class in Sangria.
This builds on the previous blog post about Sangria.
What is Akka Serverless?
In short: There are no actors. It’s a 4GL framework in the cloud.
We’ll go through the steps necessary to parse value classes.
We’ll update a config file with sed
We’ll continue the plan to rate movies with Markov chains.
This time we predict ratings.
We’ll continue the plan to rate movies with Markov chains.
This time we’ll learn a Markov chain from movie plots.