The documentation you are viewing is for Dapr v1.10 which is an older version of Dapr. For up-to-date documentation, see the latest version.
How-to: Interact with virtual actors using scripting
Learn how to use virtual actors by calling HTTP/gRPC endpoints.
Invoke the actor method
You can interact with Dapr to invoke the actor method by calling HTTP/gRPC endpoint.
POST/GET/PUT/DELETE http://localhost:3500/v1.0/actors/<actorType>/<actorId>/method/<method>
Provide data for the actor method in the request body. The response for the request, which is data from actor method call, is in the response body.
Refer to the Actors API spec for more details.
Note
Alternatively, you can use Dapr SDKs to use actors.Save state with actors
You can interact with Dapr via HTTP/gRPC endpoints to save state reliably using the Dapr actor state mangement capabaility.
To use actors, your state store must support multi-item transactions. This means your state store component must implement the TransactionalStore
interface.
See the list of components that support transactions/actors. Only a single state store component can be used as the state store for all actors.
Next steps
Actor reentrancy >>Related links
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.