Software Design

Social Network: Users, Friendships & Feeds

UML Class Diagrams · made in Skemio

UML class diagram of a social network illustrating User, Friendship, Post, Comment, and FeedItem relationships.
UML class diagram of a social network illustrating User, Friendship, Post, Comment, and FeedItem relationships.

What it shows

  • Model friendships as explicit edge records to support state and blocks.
  • Use materialized paths on comments to query nested threads in one query.
  • Decouple post creation from feed fan-out to prevent timeline bottlenecks.

The takeaway

Treat user relationships as first-class edge entities to handle blocks, requests, and feeds cleanly.

More uml class diagrams