Grokking the System Design Interview
Vote

0% completed

​

REST vs RPC

An online store is being split into services. To create an order, the order service must now ask the catalog service for a product's price, over the network.

Every call between services needs a shape. Should the API name things, like "product 42"? Or should it name actions, like "get product 42"?

That is the difference between REST and RPC. This lesson explains both styles, what each one costs, why the data format is not the real difference, and where each style is usually used.

Two Ways to Design a Call

In REST, the API names things, called resources

.....

.....

.....

Like the course? Get enrolled and start learning!
Tiit Kuuskmäe

Tiit Kuuskmäe

· a year ago

REST protocal can also transfer XML, thus the data formatting is not a difference of the two.

Show 1 reply

Reading Progress

0%


Vote for new content