Design a blogging backend: authors create posts with markdown or rich text, publish or draft state, and public readers fetch posts by slug or id. Support comments moderation basics and listing with pagination.
Functional requirements
- Authors create, edit, and delete posts with draft vs published state
- Public read of published posts by slug with SEO-friendly URLs
- Paginated list of recent posts and optional tag filtering
- Readers post comments with basic spam filtering or moderation queue
Non-functional requirements
- Read-heavy traffic cacheable at CDN for public posts
- Durable storage for content revisions (optional)
- Availability for public reads during author tooling outages