Skip to content
Theory · API and data model · lesson 2 of 7

REST, RPC and events

The list of calls is ready, and now you need to decide in what style the services talk — to the client and to each other. In an interview three styles are enough: REST, RPC and events. The interviewer expects you to name the style of every link on the diagram and explain the choice. For lists and repeated requests, name two more techniques: pagination and an idempotency key.

In this lesson

  • Three styles
  • Pagination
  • Idempotency key
  • Common mistake
  • Key points