I can see code like this:
service SomeService_v2 {
rpc DoSomething(FirstRequest) returns (FirstResponse);
rpc DoSomethingElse(SecondRequest) returns (SecondResponse);
}
What rpc
keyword does?
It stands for Remote Procedure Call. It is used when you want to invoke a "procedure"/function in a remote server. The best example is the communication between front and backend. See here: https://en.wikipedia.org/wiki/Remote_procedure_call