HardDesign: Social Media Platform (Instagram)

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

Tests your understanding of this concept.

Answer Options

ADatabase unique constraint on (user_id, post_id)
BRedis SET membership check before incrementing counter
CRate limiting per user
DBoth 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