rust-sdk icon indicating copy to clipboard operation
rust-sdk copied to clipboard

Dapr Actor support?

Open AlseinX opened this issue 4 years ago • 4 comments
trafficstars

Will it be supported?

AlseinX avatar Jan 02 '21 16:01 AlseinX

We want to support Rust actors, but currently this is not on the roadmap for maintainers. Community contributions are welcome though.

yaron2 avatar Feb 11 '21 04:02 yaron2

Not a complete implementation by a (very very) long shot, but I made a WIP PR to gather some feedback on a general solution direction: https://github.com/dapr/rust-sdk/pull/63.

First ever open source contribution and fairly new to rust, so really open for any feedback. Hope this helps somebody.

thomas-tribus avatar Nov 22 '21 19:11 thomas-tribus

@thomas-tribus cool that you worked on this!

Would it be an idea to split into 2 parts?

  • invoking an actor (client)
  • hosting / implementing an actor (server)

This might make it easier to merge already a part of your work - I guess the client part might be less complex than the server part.

hansmbakker avatar Mar 20 '22 18:03 hansmbakker

@hansmbakker Thanks for your reply. I also replied in the PR (#63 )

Exposing the client (invoke actor) would require the using HTTP API, because for some reason the GRPC API doesn't seem to include actors. So that drags in a bit of work on that as well.

Having an idiomatic actor client implementation is a lot of work, that might actually be beyond my rust skills. It would require something like reflection I think, to have some parity with the C# implementation.

The server might actually be easier, at least for the case where you don't serve other dapr APIs.

But either way, I won't have much time for this at the moment unfortunately.

thomas-tribus avatar Mar 30 '22 11:03 thomas-tribus

Addressed by #99

mikeee avatar Mar 16 '24 15:03 mikeee