March 2025
Intermediate to advanced
202 pages
4h 45m
English
Leaderboards are an ideal example of projections. They take a long stream of data and distill it down to a very small bit of summarized information. Most leaderboards of any size can take prohibitively long to generate, which reinforces the need for a separation of read and write models.
Let’s consider a video game in which the goal is to kill zombies. You want to generate a leaderboard that shows the top 10 most prolific zombie slayers of all time. To produce this on demand, you would have to query the entire history of zombie kills from the game’s release day until the present day.
The following is an example of the leaderboard you’ll generate for this game that shows the top 10 zombie killers of all time.
Read now
Unlock full access