Skip to content

[3.x] Add per-message MessageCodec backends with Protobuf support#182

Merged
ghostdogpr merged 18 commits into
series/3.xfrom
serialization-codecs
Jun 2, 2026
Merged

[3.x] Add per-message MessageCodec backends with Protobuf support#182
ghostdogpr merged 18 commits into
series/3.xfrom
serialization-codecs

Conversation

@ghostdogpr

@ghostdogpr ghostdogpr commented May 14, 2026

Copy link
Copy Markdown
Collaborator

Introduces per-message-type MessageCodec[Msg] support and moves serialization selection from a runtime Serialization layer to the EntityType / TopicType declaration site.

  • Replaces the old Serialization service with MessageCodec[Msg]
  • Adds Java serialization, Kryo, and Proteus codec backends

The new API expects a codec given to be in scope where an EntityType or TopicType is declared, for example:

import com.devsisters.shardcake.kryo.given

object Guild extends EntityType[GuildMessage]("guild")

@ghostdogpr
ghostdogpr changed the base branch from series/2.x to series/3.x May 14, 2026 08:25
@ghostdogpr
ghostdogpr merged commit 990757f into series/3.x Jun 2, 2026
3 checks passed
@ghostdogpr
ghostdogpr deleted the serialization-codecs branch June 2, 2026 05:11
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