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

Non-effectful serialization and deserialization #1380

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

svroonland
Copy link
Collaborator

@svroonland svroonland commented Nov 12, 2024

This is an exploration of #853.

Serializers cannot fail, like in zio-json. Deserialization is no longer allowed to be side-effectful, so serializers like the Confluent Avro serde (which communicates with a schema registry) will have to be run in the user's own code. We should add an example to the documentation.

I thought a free error type for the deserialization error would be nice, but at some point it has to be integrated with other errors in the Runloop, which means wrapping it in an exception for now. Needs something better..

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.

1 participant