Skip to content

custom serializers#281

Merged
maxdml merged 5 commits intomainfrom
custom-serializers
Mar 26, 2026
Merged

custom serializers#281
maxdml merged 5 commits intomainfrom
custom-serializers

Conversation

@maxdml
Copy link
Copy Markdown
Collaborator

@maxdml maxdml commented Mar 23, 2026

  • Export our internal Serializer interface
  • Accept an optional serializer instance in Config. Default to JSON serializer.

We support custom serializers of type any. For decoding, the serializer should use a type envelope (as demonstrated in dbos-inc/dbos-demo-apps#412) to track the type of encoded values. We expect the custom Decode function to return a value we can type-assert to a concrete type T.

Also provide a simple gob encoder. Gob embeds type informations, so it doesn't need a user-provided type envelope.

@maxdml maxdml merged commit fa9dc28 into main Mar 26, 2026
4 of 5 checks passed
@maxdml maxdml deleted the custom-serializers branch March 26, 2026 00:33
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