Remote Procedure Call (RPC)¶
RPC is an acronym for Remote Procedure Call. This happens when the program delegate the execution of a piece of code to a separate server.
PHP offers xml-rpc, grpc, protocolbuffers or protobuf and yar offers different standard way to do RPC.
<?php
$params = ['one'=>'red', 'two'=>'blue', 'three'=>'green'];
$response = xmlrpc_encode($params);
echo($response);
?>
Related : gRPC (Google Remote Procedure Call), Application Programming Interface (API), Serialization
Related packages : grpc/grpc