© Jan Newmarch and Ronald Petty 2022
J. Newmarch, R. PettyNetwork Programming with Go Languagehttps://doi.org/10.1007/978-1-4842-8095-9_13

13. Remote Procedure Call

Jan Newmarch1   and Ronald Petty2
(1)
Oakleigh, VIC, Australia
(2)
San Francisco, CA, USA
 

Socket and HTTP programming both use a message-passing paradigm. A client sends a message to a server, which usually sends a message back. Both sides are responsible for creating messages in a format understood by both sides and reading the data out of those messages.

However, most stand-alone applications do not use message-passing techniques much. Generally, the preferred mechanism is that of the function (or method or procedure) call. In this style, a program will call a function with a list of parameters ...

Get Network Programming with Go Language: Essential Skills for Programming, Using and Securing Networks with Open Source Google Golang now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.