Skip to content
Theory · Top-K and counters · lesson 4 of 11

API and data model

A trending service has three external calls: the apps send views, the page reads a live list, and creators' reports take the exact list of a finished day. Inside there are two contracts between the counting stages and four stores: the event log, the counters, the finished lists and the daily results. Let's go through them in turn.

In this lesson

  • Taking views
  • Reading a list
  • The exact day
  • Inside the counting
  • Where things are stored
  • Common mistake
  • Key points