Tokio Channels instead of RPC? #256
Danconnolly
started this conversation in
General
Replies: 1 comment
-
RPC is backed by Tokio. But really the That's up to you how you want to go, but you can totally work around the syntactic sugar and roll your own. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, the framework looks very interesting, I'm a huge fan of the actor model and former Erlanger.
But the RPC makes me doubt using this library. Have you considered using tokio channels to handle the messaging? (https://docs.rs/tokio/latest/tokio/sync/index.html). In a custom actor implementation I'm using MPSC for sending cast messages (put the Sender of the channel in the ActorRef so it can be copied mercilessly) and oneshot channels for calls (calling function creates the channel, passes the Sender along with the call parameters).
Channels wont cross compute boundaries but isnt that a rather specialized case?
Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions