A remote procedure call (RPC) invokes a preconfigured procedure or method on another computer or process. It frames an API around actions such as predictWeather(postalCode), encrypt(data), or sendEmail(to). section 1.3
RPC works especially well for stateless operations, where each request stands alone. It becomes a poorer fit for stateful operations that depend on earlier requests or previously stored data, making resource-oriented designs a useful alternative. section 1.3
Flight-booking API
An RPC-style interface might expose ScheduleFlight(), GetFlightDetails(), ShowAllBookings(), CancelReservation(), RescheduleFlight(), and UpgradeTrip(). Standard resource methods instead use names such as CreateFlightReservation(), GetFlightReservation(), ListFlightReservations(), DeleteFlightReservation(), and UpdateFlightReservation(). section 1.3




