Design a Live Response Counter for Google Forms
Last updated: November 29, 2026
Quick Overview
Design the counting and summary service for Google Forms that shows live response counts and per-question tallies, including for a viral form receiving thousands of submissions per second.
Google
System Design
Software Engineer
Software Engineer
Phone Screen
System Design
Easy
0
0
0 solved
Design the counting and summary service for Google Forms that shows live response counts and per-question tallies, including for a viral form receiving thousands of submissions per second.
A focused Google screen question about write contention. The interviewer checks whether you notice the hot row problem on one popular form and know sharded counters and asynchronous aggregation.
What the Interviewer Expects
- Store each response durably before counting
- Identify the hot counter row for viral forms
- Use sharded counters or async aggregation
- Separate exact totals from approximate live displays
- Handle response deletion and edits
Key Topics to Cover
sharded counters
hot keys
async aggregation
eventual consistency
idempotency
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 many shards do you need and how do you pick one per write?
- How would 'limit to 500 responses' be enforced exactly?
- How do you recompute tallies if a question's options are edited?
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
- Store every submission. Show the owner a total count and per-option tallies (e.g., 62% chose B) refreshed within a few seconds.
- Most forms get a handful of responses; a viral one can get 5,000/s. ...
High-Level Design
- Submit API writes the response to a responses table keyed
(form_id, response_id)with a client-generated idempotency key. - Counter shards:
(form_id, shard 0..K-1)rows with total and pe...
Submit Your Answer
Markdown supported