Getting ready
This recipe does not have any prerequisites. However before going through this recipe, it is required to understand what event adapters are in the Akka persistence context. Event adapters help to detach the data model from the domain model completely. This might be helpful in scenario where your data model evolves over time or you want to use a different format when storing the events in the journal. Event adapters are also used for tagging. In some scenarios, it might desirable to add some metadata to the events we are storing. Akka persistence provides a case class called Tagged to accomplish this task where you can provide your event and a set of tags. To add these tags to your events, you need to write your own event adapter ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access