{"action":"created","issue":{"url":"https://api.github.com/repos/godaddy/Thespian/issues/24","repository_url":"https://api.github.com/repos/godaddy/Thespian","labels_url":"https://api.github.com/repos/godaddy/Thespian/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/godaddy/Thespian/issues/24/comments","events_url":"https://api.github.com/repos/godaddy/Thespian/issues/24/events","html_url":"https://github.com/godaddy/Thespian/issues/24","id":186638263,"number":24,"title":"Sending message to remote actor systems","user":{"login":"davidhonfi","id":2332661,"avatar_url":"https://avatars.githubusercontent.com/u/2332661?v=3","gravatar_id":"","url":"https://api.github.com/users/davidhonfi","html_url":"https://github.com/davidhonfi","followers_url":"https://api.github.com/users/davidhonfi/followers","following_url":"https://api.github.com/users/davidhonfi/following{/other_user}","gists_url":"https://api.github.com/users/davidhonfi/gists{/gist_id}","starred_url":"https://api.github.com/users/davidhonfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidhonfi/subscriptions","organizations_url":"https://api.github.com/users/davidhonfi/orgs","repos_url":"https://api.github.com/users/davidhonfi/repos","events_url":"https://api.github.com/users/davidhonfi/events{/privacy}","received_events_url":"https://api.github.com/users/davidhonfi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-01T20:30:23Z","updated_at":"2016-11-02T13:54:29Z","closed_at":null,"body":"I just recently started using Thespian, its features are really great. However, I have just ran into a limitation/bug, which I cannot solve. My situation is the following.\r\n\r\nI have multiple actor systems on different machines, including a dedicated system that has a coordinator actor (this system is the convention leader). I would like to distribute the address of the coordinator actor for some specific actors in other, remote actor systems (to be able to send back results of jobs). I am currently using the convention update system message for this purpose (the coordinator actor is subscribed to this).\r\n\r\nMy problem here is that I cannot send a message to the actor system that is just connected to the convention. Using the message handler of the coordinator I am sending a message to the remoteAdminAddress (received in the convention update message). However, this message is not being delivered to the remote, recently connected system (the remote waits for a message with ActorSystem.listen()).\r\n\r\nAlso note that the coordinator does not throw any exception, the sending finishes successfully. I have tried configuring admin routing as well, but it did not help. "},"comment":{"url":"https://api.github.com/repos/godaddy/Thespian/issues/comments/257870697","html_url":"https://github.com/godaddy/Thespian/issues/24#issuecomment-257870697","issue_url":"https://api.github.com/repos/godaddy/Thespian/issues/24","id":257870697,"user":{"login":"davidhonfi","id":2332661,"avatar_url":"https://avatars.githubusercontent.com/u/2332661?v=3","gravatar_id":"","url":"https://api.github.com/users/davidhonfi","html_url":"https://github.com/davidhonfi","followers_url":"https://api.github.com/users/davidhonfi/followers","following_url":"https://api.github.com/users/davidhonfi/following{/other_user}","gists_url":"https://api.github.com/users/davidhonfi/gists{/gist_id}","starred_url":"https://api.github.com/users/davidhonfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidhonfi/subscriptions","organizations_url":"https://api.github.com/users/davidhonfi/orgs","repos_url":"https://api.github.com/users/davidhonfi/repos","events_url":"https://api.github.com/users/davidhonfi/events{/privacy}","received_events_url":"https://api.github.com/users/davidhonfi/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T13:54:29Z","updated_at":"2016-11-02T13:54:29Z","body":"It is getting clearer now, thanks. So, in my case the best and supported solution would be to create each top-level actors on remote systems from the coordinator. This would result in a large distributed tree of actors. If that is the case, my only requirement is to have only one top-level (\"host coordinator\") actor on each remote actor system. How can I ensure that with capabilities only? More generally, how can I ensure that there is only one instance of a specific type of actor in an actor system? Or should I avoid this during designing the architecture?\r\n\r\nThe rest of the job is clear: the top-level local admins create children actors in their own remote systems, which are now indirectly connected to the coordinator (grandparent) and can send messages to him."}}
{"actor":{"display_login":"davidhonfi"}}