akka/akka-core

Custom manifest naming for persistence with Jackson

Aperta

#30.483 aperta il 5 ago 2021

 (5 commenti) (0 reazioni) (0 assegnatari)Scala (3547 fork)batch import
1 - triagedhelp wantedt:serialization

Metriche repository

Star
 (13.277 stelle)
Metriche merge PR
 (Merge medio 8g 19h) (10 PR mergiate in 30 g)

Descrizione

Full class names as manifests lead to lot of unnecessary storage overhead and leads to problems if event classes are being refactored into different packages.

It would be very helpful to be able to define custom manifest names like e.g. this:

case class @PersistenceManifest("AbcActor.Name") NameEvent(id: UUID, name: string) extends Event

Ideally, it should be checked on startup if persistence manifest names are unique within the running application.

Guida contributor