February 2013
Intermediate to advanced
656 pages
21h 26m
English
The implementation patterns outlined previously focused on an object-oriented approach, which is a good fit for programming languages such as Java and C#. However, Event Sourcing is inherently functional in nature. Thus, it can be successfully implemented with functional languages such as F# and Clojure. Doing so could potentially lead to more concise code that performs optimally.
Here are some peculiarities of switching from an object-oriented to a functional approach for Aggregate implementations:
• We must switch from using a mutable object-oriented Aggregate state object to designing a simple immutable state record with a collection of mutating functions. The mutating functions simply take a state record ...
Read now
Unlock full access