Skip to content
Hard Design: Social Media Platform (Instagram)

What technique prevents the same user from liking a photo multiple times?

— Tests your understanding of this concept.

Answer Options

A Database unique constraint on (user_id, post_id)
B Redis SET membership check before incrementing counter
C Rate limiting per user
D Both A and B are valid approaches

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 22+ more Design: Social Media Platform (Instagram) questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Design: Social Media Platform (Instagram) topic (System Design Cases).

More Design: Social Media Platform (Instagram) Questions