suprnation / cats-actors

Cats Actors framework for building apps which are reactive. Cats actors uses a conceptual actor model as a higher level abstraction for concurrency.
Apache License 2.0
59 stars 5 forks source link

Actor Clustering / Distributed workflows #10

Open tmihalicka opened 3 weeks ago

tmihalicka commented 3 weeks ago

This library shows great promise as a replacement for Akka within the Cats ecosystem. However, one key feature is missing: Actor Clustering and a mechanism for distributed workflows.

Is there any plan to implement clustering in the near future?

Another key feature which I missing is persistent actor, is there any plan to implement this feature as well?

cloudmark commented 3 weeks ago

We are not currently working on clustering, but the cats-actors are designed in a way that won’t hinder or complicate the implementation when the time comes.

Implementing persistent actors should be relatively straightforward. The preStart method is of type F[], allowing you to connect to a database and enable this flow. Similarly, there is a postStop method of type F[] to handle cleanups before the actor stops. If you provide me with a sample of what you’re trying to achieve, I can look into it.

Feel free to contribute to both of these issues—it would be great to have more contributors to the project.

cloudmark commented 2 weeks ago

Perhaps I could also do a special ask which exposes the underlying deferred so that the caller can decide what to do