Is ReadEntityState one reason it is called "actor-like"? #1961
-
Hello all, If I implement read-state as a message the actor understands and Call it from an orchestration, does Durable Entities ensure the the state setting signal (which exists outside the orchestration as a REST API for example) is processed before the read-state Call operation? Thanks in advance for the education! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
You are correct that ReadEntityStateAsync() is the main violation of the message-based actor model. Calling an entity from an orchestration is effectively a signal that also waits for the entity to send an external event back to the orchestration with a result. Because we guarantee that operations will execute in the order that they are signaled, this will have the actor-like behavior you expect. |
Beta Was this translation helpful? Give feedback.
You are correct that ReadEntityStateAsync() is the main violation of the message-based actor model.
Calling an entity from an orchestration is effectively a signal that also waits for the entity to send an external event back to the orchestration with a result.
Because we guarantee that operations will execute in the order that they are signaled, this will have the actor-like behavior you expect.