In distributed computing, a remote procedure call (RPC) is when a computer program causes a procedure (subroutine) to execute in another address space (commonly on another computer on a shared network), which is coded as if it were a normal (local) procedure call, without the programmer explicitly coding the details for the remote interaction.
純粹是個定義問題,跟新不新手沒關係。
wiki 的定義是
In distributed computing, a remote procedure call (RPC) is when a computer program causes a procedure (subroutine) to execute in another address space (commonly on another computer on a shared network), which is coded as if it were a normal (local) procedure call, without the programmer explicitly coding the details for the remote interaction.這是一個非常具體,貼近實現的定義。比如客戶端用 http client 發起的 http 請求就不是 rpc,他跟呼叫一個本地方法不同。但如果用 feign 似乎就又是了,都是調了個介面。(這裡的相同和不同其實也缺乏明確定義)
至於題主想擴充 rpc 的範圍,不用這個定義,只要在團隊內形成共識就行。計算機領域本來精確定義了的名詞就不多,如果大家定義不一致吵來吵去,也沒什麼意思。