The interview problem
Deliver browser push notifications when devices rotate subscriptions, remain offline or revoke permission. Avoid treating provider acceptance as a user read receipt.
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Assume user-authorized subscriptions with opaque endpoint and key material. Store subscription version, user/device binding and allowed purpose securely. Queue messages with a useful lifetime and collapse replaceable updates where supported. On terminal endpoint failure, retire that version without deleting a newer concurrent subscription. Separate provider acceptance, delivery evidence and application acknowledgment; none automatically establishes human attention.
2. Trace the design or derivation
Register consented endpoint → enqueue with expiry → submit → retire invalid endpoint → reconcile status
A renewed subscription should replace only the matching device's old binding, not every subscription for the user. Keep payloads minimal and fetch sensitive content through authenticated application APIs. Record accepted, expired and invalid-endpoint outcomes separately; none alone proves that a person read or even saw the notification.
3. Calculate the example
A 10-minute event notification queued for a device offline for two hours is stale when it reconnects. A 600-second lifetime expresses that limit. If 10,000 sends receive 9,500 provider acceptances, acceptance is 95%; reporting 9,500 people reached is unjustified without additional evidence and identity assumptions.
4. Failure cases and trade-offs
Reusing an old endpoint after renewal wastes traffic and can mishandle ownership. Unbounded retention delivers obsolete alerts. A logout must update the account-device binding. Longer lifetimes increase eventual delivery but may harm relevance and privacy on shared devices.
5. Validation, follow-ups and self-review
Test renewal races, permission revocation, offline expiry and duplicate sends. Keep payloads minimal and fetch authorized current details when the app opens. Follow-up: which messages may collapse safely? Reward subscription versioning and honest delivery metrics.
Sources and related practice
Technical reference: www.rfc-editor.org — Web Push delivery lifetime and subscription behavior.
Source publication/update: December 2016. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Design a notification delivery service; Fix a pilot dashboard that counts clicks as completed work.
Continue your preparation
Choose a connected learning path or browse more System design questions. Read our editorial method and attribution policy.