You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/app/blog/irpc/page.mdx
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -51,13 +51,13 @@ enum Request {
51
51
}
52
52
```
53
53
54
-
Your "client" then is a tokio `mpsc::Sender<Command>` or a small wrapper around it that makes it more convenient to use. And your server is a task that contains a handler loop.
54
+
Your "client" then is a tokio `mpsc::Sender<Request>` or a small wrapper around it that makes it more convenient to use. And your server is a task that contains a handler loop.
55
55
56
56
Calling such a service without a client wrapper is quite cumbersome. For example, here's what it takes to call `Get`:
Since you already have an async boundary and a message passing based protocol, it seems like it would be easy to also use this protocol across a process boundary. But you still want to retain the ability to use it in-process with zero overhead.
107
107
108
-
To cross a process boundary, the commands have to be serializable. But the response or update channels are not. We need to separate the message itself and the update and response channels.
108
+
To cross a process boundary, the requests have to be serializable. But the response or update channels are not. We need to separate the message itself and the update and response channels.
0 commit comments