Practice: Design a Blog Platform
Blogging platform inspired by Medium and Ghost: authors publish posts, readers get pages from a cache and the CDN edge, and rendering and follower updates happen in the background.
Build this system yourself on the canvas below. Add components, connect them, and run traffic simulations to see where your design holds up and where it breaks.
Functional requirements
- Show a post to a reader on a fast, shareable page, including images and the author's name
- Let an author write, publish, edit and unpublish a post, with drafts saved before publishing
- Render a post's page after it is published (or edited) in the background, so publishing returns quickly
- Show a reader the latest posts of the authors they follow, newest first
- Handle a post going viral: thousands of reads per second on one post must not slow the rest of the site
- Limit how fast one account can publish or edit, so a bot cannot flood the platform
Non-functional requirements
- Page response < 100ms p99 for published posts, served from the CDN and post cache
- A published post or edit is visible to readers within 30 seconds
- Handle 10K page requests per second at peak, with about 5 new or edited posts per second
- A viral post can take 5K reads per second without reaching the database (cached at the edge)
- 99.99% durability: a published post is never lost; scale to 10M posts
- 99.99% availability for reading, even if publishing is down
- Rendering workers can fall behind during a burst without losing a publish (queued, retried)