swift-distributed-actors icon indicating copy to clipboard operation
swift-distributed-actors copied to clipboard

Fresh take on Virtual Actors - allowing "get user for some user defined id"

Open ktoso opened this issue 3 years ago • 2 comments

We should have a fresh take on https://github.com/apple/swift-distributed-actors/issues/288 that is based on distributed actors.

Virtual actors are a type of "an actor that is always there" and are allocated on demand by some user id.

ktoso avatar Aug 18 '22 07:08 ktoso

It'd be a take on Orleans style virtual actors; implementation wise we can base it on Akka's sharding for the most part I believe.

Prior art:

  • https://doc.akka.io/docs/akka/current/typed/cluster-sharding.html akka's cluster sharding is effectively the same feature, but not packaged up in the same API
  • https://dotnet.github.io/orleans/docs/grains/grain_placement.html orleans primary abstraction is virtual actors

ktoso avatar Aug 18 '22 07:08 ktoso

Even from my little experience already facing some limitations, where it's good to have actor by id. So would like this feature 👍

akbashev avatar Oct 03 '22 13:10 akbashev