Skip to content

Conversation

joshgarnett
Copy link
Contributor

  • Ported over MessageSerializer & SnapshotSerializer from JVM Akka
  • Custom serializers are now being used as expected. Previously, as is evident by the unit test changes, custom serializers were not being used when serializing Akka.Persistence.IMessage.
  • LocalSnapshotStore automatically picks up the new serializer and should work better with protobuf based snapshots

* Ported over MessageSerializer & SnapshotSerializer from JVM Akka
* Custom serializers are now being used as expected.  Previously, as is evident by the unit test changes, custom serializers were not being used when serializing Akka.Persistence.IMessage.
* LocalSnapshotStore automatically picks up the new serializer and should work better with protobuf based snapshots

private PersistentPayload GetPersistentPayload(object obj)
{
Serializer serializer = system.Serialization.FindSerializerFor(obj);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs DefaultSerializer persistence setting support.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But i dont consider it a blocking issue. We can fix it later. Its not a thing that will break any existing stuff

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we talked about in chat, the current dev branch does not support specifying the default serializer for persistence serialization, it just uses whatever has been defined for the objects in the serialization-bindings.

Currently the dev branch doesn't actually support custom serializers at all for the payload within the IPersistentRepresentation, this was fixed and is reflected in the unit test changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants