-
Why should trait Command in ShoppingActor be CborSerialized |
Beta Was this translation helpful? Give feedback.
Answered by
Roiocam
Jul 12, 2024
Replies: 2 comments
-
I can't find ShoppingActor or CborSerialized in this repo. Can you provide a bit more detail? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Because ShoppingActor was implicitly declared as a cluster sharding entity, so you may want to interact with it from any node, in this case, you need to serialize the command. If you only use it on a single node, you could skip this part. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
alexrook
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because ShoppingActor was implicitly declared as a cluster sharding entity, so you may want to interact with it from any node, in this case, you need to serialize the command.
If you only use it on a single node, you could skip this part.