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
I'm using capnp for serialization already and will be using it for bidirectional communication over IPC via Unix domain socket.
The benefits the Capnp RPC system brings to me is really just:
Handle knowing size of request payload / when to stop reading bytes.
Handling the req / rep pattern (matching a response message ID with the ID of the request).
Are those two alone worth it to adopt Capnp RPC, or should my use case be fairly simple to do by working with the socket directly? I ask because I've read the RPC system and protocol is fairly complex, and I'm cautious of adopting it if I don't need its more complex features.
I haven't worked with sockets directly for very long so I may be underestimating some complexity there, but I'd guess the size of the message could just be a couple bytes at the beginning which are for the size of the payload to deserialize using capnp.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using capnp for serialization already and will be using it for bidirectional communication over IPC via Unix domain socket.
The benefits the Capnp RPC system brings to me is really just:
Are those two alone worth it to adopt Capnp RPC, or should my use case be fairly simple to do by working with the socket directly? I ask because I've read the RPC system and protocol is fairly complex, and I'm cautious of adopting it if I don't need its more complex features.
I haven't worked with sockets directly for very long so I may be underestimating some complexity there, but I'd guess the size of the message could just be a couple bytes at the beginning which are for the size of the payload to deserialize using capnp.
Beta Was this translation helpful? Give feedback.
All reactions