Akka Persistence Typed
summary
Akka Persistence Typed (Akka 2.6 M7) gives an event‑sourced Behavior API with concrete examples: enforced replies that force reply types and prevent missing responses, declarative snapshotting (e.g. snapshot every 100 events or on predicate) so snapshots are managed by Akka, and tight cluster sharding integration so entities are single‑writer across nodes. Existing journal plugins stay compatible, serialization should use Protobuf/Jackson not Java, and planned Lagom-style partitioned event consumers replace singleton processors. Code demos compile and run.
AI-written summary · about
chapters (15)
- 0:00Introduction and personal anecdotes
- 1:25Akka Persistence history and basics
- 5:04Akka Typed overview
- 10:20Akka Persistence Typed introduction
- 16:27Domain modeling with Akka Typed
- 20:59Live coding: Account example
- 27:11Enforced replies in Persistence Typed
- 28:59Cluster sharding with Persistence Typed
- 34:00Why sharding matters for persistence
- 36:30Serialization requirements for sharding
- 37:13Implementing cluster sharding
- 39:44Key takeaways and benefits
- 41:32Event sourcing and microservices
- 43:39Future features and distributed event consuming
- 45:21Resources and closing
