I recently found out that RPC and REST are just API constructs and not different protocols through which two services communicate and send data to each other over the network. The underlying protocol is still HTTP in both the cases.
The question which came to my mind was - How did services used to communicate before the advent of RPC?
This might be very trivial, but I am just trying to understand some differences between REST, RPC, HTTP and trying to have clear concepts