Hi Andrey,
For this purpose we have recently added ActorSystemSetup, which makes it
possible to define serializers programmatically before the actor system is
created.
See here for how to use it with serializers:
There's another wrinkle with the current Serialization API. It assumes
that serialization is always from/to binary. If you are using pure-JSON
and storing it in (say) a flat file you most likely want to serialize
the payload, then "wrap" that inside an outer JSON object containing the
Consider a serializer that delegates to some JSON library. The delegate is
instantiated outside of the serializer, before the ActorSystem is even
created (when, for example, relying on a dependency injection framework).
Is it possible to "share" this delegate with the serializer(s) that depend