The centre tab in our app used to be a placeholder with the logo on it. It is now a feed: announcements from the team, notification activity, and short cards for what is happening in your groups. Building the scrolling list was the easy half. The hard half was deciding what a person who installed the app today should see. An announcement timeline is easy to render and surprisingly easy to get wrong: the obvious implementation has a backlog problem that only shows up for new accounts.
This post covers the delivery model behind that timeline, the three sources merged into it, and the authorization bug the photo albums exposed.
The backlog problem hiding under a simple feed
The first design everyone reaches for is a posts table with a publish_at column: filter publish_at <= now , order by time, page. It works beautifully for the people who were already there when each post was written.
Now imagine someone registers after ten announcements. They see all ten at once, newest first.β¦