Slide 16
Slide 16 text
Understanding F[G[Event]]
— F is a Context that can express success or failure
— G is a Context that can express quantity
(zero, one or more)
type Error = String
type Result[T] = Either[Error, T]
Aggregate => Command => Result[Id[Event]] // F = Result, G = Id
Aggregate => Command => Result[Option[Event]] // F = Result, G = Option
Aggregate => Command => Result[Seq[Event]] // F = Result, G = Seq
Reactive Summit, Austin, 2017 13/24