Design Skill Endorsement Counts on Member Profiles
Last updated: November 29, 2026
Quick Overview
Members can endorse each other's skills, and each skill on a profile shows an endorsement count and a few endorsers. Design the storage and APIs for endorsing, un-endorsing, and showing counts.
0
0
0 solved
Members can endorse each other's skills, and each skill on a profile shows an endorsement count and a few endorsers. Design the storage and APIs for endorsing, un-endorsing, and showing counts.
Endorsements are a classic LinkedIn profile feature and a good warm-up design focused on counters and data modeling. The interviewer checks for an edge table, a correct counting approach under concurrency, and caching for profile reads.
What the Interviewer Expects
- Models endorsements as edges with uniqueness
- Keeps counts consistent with the edge table
- Designs fast reads of counts and top endorsers
- Handles un-endorse and member deletion
- Caches profile skill data
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How would you show the endorsers most relevant to the viewer?
- How do you avoid a hot row for a celebrity skill?
- How would you handle spammy mass endorsement?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: endorse a skill on another member's profile once; remove an endorsement; profile shows each skill's count and up to 3 endorsers (preferably connections of the viewer). **Non-functional...
High-Level Design
- Endorsement service with a relational or document store.
- Tables:
endorsements(endorsee_id, skill_id, endorser_id, created_at)with primary key on all three ids; `skill_counts(endorsee_id, sk...