Skip to content

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

Open
ghostdogpr wants to merge 15 commits into
series/3.xfrom
serialization-codecs
Open

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

Conversation

@ghostdogpr
Copy link
Copy Markdown
Collaborator

@ghostdogpr ghostdogpr commented May 14, 2026

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
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