Trending with editorial control
Show what is popular right now, and let editors boost, block or pin content instantly, without retraining anything.
The need
Everyone, including anonymous visitors, should see what is popular now. At the same time editors need to push a campaign, and to pull an item immediately when there is a rights problem or an error.
How the stack handles it
Play events from all users
The same event stream as every other use case. No user history is needed.
A trending task counts recent plays
On a schedule, the trending task counts which items were played recently and ranks them.
The list and the rules in Dragonfly
The ranked list is stored for instant reads. Editorial rules are kept as small lists next to it, so changing them does not need a deploy.
The endpoint applies rules, then answers
The endpoint reads the list and the rules, boosts, pins or removes items, re-sorts, and returns the result. This list is also the fallback for other endpoints.
Why it is built this way
- The model is slow to change and the rules are fast to change, so each is kept where it suits.
- Because rules are read at request time, a kill switch acts on the next request.
- Trending needs no personal data, so it works for everyone and is safe as a fallback.
Variations
- Run one trending list per category, such as news, sport and music.
- Use trending as the starting point and let collaborative filtering personalise on top.