From 9da5131733b281c87ecc5c9fc4bd986b24207541 Mon Sep 17 00:00:00 2001 From: Levi Ramsey Date: Fri, 24 Jun 2022 12:56:07 -0400 Subject: [PATCH 1/2] Document Kryo suitability The use of Kryo to serialize data which is expected to be deserialized by a process not running at the time of the serialization is not recommended. --- akka-docs/src/main/paradox/serialization.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/akka-docs/src/main/paradox/serialization.md b/akka-docs/src/main/paradox/serialization.md index e08b3453471..e3a2a08a0fb 100644 --- a/akka-docs/src/main/paradox/serialization.md +++ b/akka-docs/src/main/paradox/serialization.md @@ -280,9 +280,9 @@ It must still be possible to deserialize the events that were stored with the ol ## External Akka Serializers -* [Kryo serializer for Akka](https://github.com/altoo-ag/akka-kryo-serialization) +* [Kryo serializer for Akka](https://github.com/altoo-ag/akka-kryo-serialization) (not suitable for serializing for Persistence) -* [Twitter Chill Scala extensions for Kryo](https://github.com/twitter/chill) +* [Twitter Chill Scala extensions for Kryo](https://github.com/twitter/chill) (not suitable for serializing for Persistence) ### Verification From 20e8fe5bf6cde3456ba624f7d7cb2e3266cf25c4 Mon Sep 17 00:00:00 2001 From: Levi Ramsey Date: Fri, 24 Jun 2022 13:04:00 -0400 Subject: [PATCH 2/2] Don't recommend at all --- akka-docs/src/main/paradox/serialization.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/akka-docs/src/main/paradox/serialization.md b/akka-docs/src/main/paradox/serialization.md index e3a2a08a0fb..b3ec2f27821 100644 --- a/akka-docs/src/main/paradox/serialization.md +++ b/akka-docs/src/main/paradox/serialization.md @@ -278,12 +278,6 @@ switch to the new serializer. As an optional third step the old serializer can be completely removed if it was not used for persistent events. It must still be possible to deserialize the events that were stored with the old serializer. -## External Akka Serializers - -* [Kryo serializer for Akka](https://github.com/altoo-ag/akka-kryo-serialization) (not suitable for serializing for Persistence) - -* [Twitter Chill Scala extensions for Kryo](https://github.com/twitter/chill) (not suitable for serializing for Persistence) - ### Verification Normally, messages sent between local actors (i.e. same JVM) do not undergo serialization. For testing, sometimes, it may be desirable to force serialization on all messages (both remote and local). If you want to do this in order to verify that your messages are serializable you can enable the following config option: