Serialize SpawnProtocol

Hi everyone,
I’m currently playing around with the idea of spawning an actor on a remote node. I’m trying to achieve this by using the SpawnProtocol (as documented here: Actor lifecycle • Akka Documentation). However, I’m faced with a Failed to serialize message [$Spawn] error.
My guess is that the embedded behavior must be serialized and that this is not possible by default. So here is my question: is it possible to serialize a behavior ? :slightly_smiling_face:
Thanks to anyone that can help !

nice idea.maybe try more