# Serialize SpawnProtocol

**URL:** <https://discuss.akka.io/t/serialize-spawnprotocol/8201>\
**Category:** Akka Cluster\
**Tags:** akka-typed, java, akka-cluster\
**Created:** [May 4, 2021, 7:59am UTC](https://discuss.akka.io/t/serialize-spawnprotocol/8201 "2021-05-04T07:59:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmartin](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/bmartin/32/2347_2.png) [@bmartin](https://discuss.akka.io/u/bmartin)\
**Post date:** [May 4, 2021, 7:59am UTC](https://discuss.akka.io/t/serialize-spawnprotocol/8201/1 "2021-05-04T07:59:06Z")

</div>

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](https://doc.akka.io/docs/akka/current/typed/actor-lifecycle.html#spawnprotocol)). However, I’m faced with a `Failed to serialize message [akka.actor.typed.SpawnProtocol$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 ? 🙂  
Thanks to anyone that can help !
