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

Allow different serialization mechanisms via plug-ins #38

Closed
mgibowski opened this issue Jul 18, 2021 · 0 comments
Closed

Allow different serialization mechanisms via plug-ins #38

mgibowski opened this issue Jul 18, 2021 · 0 comments

Comments

@mgibowski
Copy link

It is not guaranteed that serialization with :erlang.term_to_binary and desarialization with :erlang.binary_to_term works correctly when using different OTP versions, see ERL-431 for an example.

I suggest addressing this issue by introducing a Serializer behavior and the default implementation being the current one and shipping with the library. There should be an option for users to provide an alternative implementation of the Serializer. I don't have much knowledge on this topic, but a quick internet search suggests me msgpax or some BSON implementation could be good candidates.

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

1 participant