You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "pjfanning (via GitHub)" <gi...@apache.org> on 2026/10/24 19:18:54 UTC

[I] core: port akka-persistence-r2dbc#441 (avoid event serialization roundtrip for SerializedEvent) [pekko-persistence-r2dbc]

pjfanning opened a new issue, #514:
URL: https://github.com/apache/pekko-persistence-r2dbc/issues/514

   ### Motivation
   [akka/akka-persistence-r2dbc#441](https://github.com/akka/akka-persistence-r2dbc/pull/441) (`perf: Avoid event serialization roundtrip`) is part of the akka-persistence-r2dbc 1.2.0 release, which is available under the Apache License, Version 2.0 as of 2026-10-24.
   
   It lets the journal write a `SerializedEvent` using its bytes, serializer id and manifest directly, instead of serializing the wrapper. It also deserializes `SerializedEvent`s received over pub-sub in `eventsBySlices`.
   
   ### Blocker
   `org.apache.pekko.persistence.SerializedEvent` was added to Pekko core in apache/pekko#3650 (2026-10-23) and first appears in the 2.0.0-M5 line. This repo currently builds against Pekko core 2.0.0-M4, which lacks the class, so the port cannot compile yet.
   
   ### Notes for the port
   - Until this is ported, `R2dbcJournal` serializes a `SerializedEvent` through `FilteredPayloadSerializer` (manifest `S`). The stored row then has the wrapper's serializer id, not the wrapped event's.
   - That serializer id is shared with `FilteredPayload`. #510 therefore checks the manifest as well as the serializer id when marking envelopes as filtered.
   - Upstream tests to port: `PersistSerializedEventSpec` (new) and the `publish SerializedEvent` test in `EventsBySlicePubSubSpec`.
   
   ### References
   Refs akka/akka-persistence-r2dbc#441, apache/pekko#3650, #510


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


Re: [I] core: port akka-persistence-r2dbc#441 (avoid event serialization roundtrip for SerializedEvent) [pekko-persistence-r2dbc]

Posted by "pjfanning (via GitHub) via notifications" <no...@pekko.apache.org>.
pjfanning closed issue #514: core: port akka-persistence-r2dbc#441 (avoid event serialization roundtrip for SerializedEvent)
URL: https://github.com/apache/pekko-persistence-r2dbc/issues/514


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org