Skip to content

Regarding its suitability for a kind of multi-threaded actor structure #16

Answered by uazu
joseluis asked this question in Q&A
Discussion options

You must be logged in to vote

The whole heirarchy of actors is easy to do within a single thread. For running another heirarchy in another thread, the supervisor actor in the first thread can start that other thread and start a stakker runtime and whatever actors are required in that thread. Maybe the PipedThread implementation could give you some ideas about making sure that things clean up correctly. Maybe PipedThread itself would be sufficient. So that part is doable.

The big question is what kind of communication will you require between the actors in the first and second threads? Stakker doesn't (yet) provide a way to proxy actor calls remotely (i.e. between threads or between machines). So you'll need to use mut…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@joseluis
Comment options

@uazu
Comment options

@joseluis
Comment options

@uazu
Comment options

Answer selected by joseluis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants