Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom System.Object serializer and persistence default serializer peculiarity documentation #141

Closed
Arkatufus opened this issue Nov 21, 2022 · 1 comment

Comments

@Arkatufus
Copy link
Contributor

Arkatufus commented Nov 21, 2022

Persistence have its own default System.Object serializer settings here:

akka.persistence.journal-plugin-fallback.serializer = json
akka.persistence.snapshot-store-plugin-fallback.serializer = json

https://github.com/akkadotnet/akka.net/blob/3f7d3980fa45565abb824fe5f192f87c1bdde113/src/core/Akka.Persistence/persistence.conf#L119
https://github.com/akkadotnet/akka.net/blob/dev/src/core/Akka.Persistence/persistence.conf#L178

This is a big gotcha for people who does not know about this peculiarity and thinks that Akka persistence would use the custom System.Object serializer they configured with Akka, as shown in issue #127

This needs to be better documented

@Aaronontheweb
Copy link
Member

I think we can close this now that akkadotnet/akka.net#6389 is resolved

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

No branches or pull requests

2 participants