Skip to main content
All Questions

Design a temporary email service where email addresses and received emails are valid for only 10 minutes.

Unlock detailed company stats for this questionUpgrade

Users can generate a temporary email address. The address stays active for 5 hours, and during that time the user can receive emails on it. After 5 hours, the temporary email and its associated data should be deleted/expired. The interviewer also asked how to handle the large volume of emails/data generated and how the cleanup process would work, covering storage, expiration, cleanup and scalability.

Expect follow-ups like

  • How do you generate unique temporary email IDs (the random string generation mechanism)?
  • How would you handle the large volume of emails and data generated by the system?
  • How would the cleanup process work?

Format · System design round: requirements, traffic and storage estimates, API design, high-level architecture.

Also asked as · Design a temporary email service whose addresses expire after 5 hours.; Design a temporary email service where email addresses and emails are valid for up to 10 minutes, and no user data is captured since it is an anonymous service.

Community answers

No answers contributed by the community yet.

Related courses

Course

Software Engineering Interview Prep

Land your dream software engineering role at Google, Amazon, Microsoft, Meta, Apple, and other top companies. Learn from mock interviews, frameworks, and advice from senior candidates—practice data structures, algorithms, system design, people management, behavioral interviews, and more.

Course

System Design Interviews

Learn how to answer the latest system design questions across product, infrastructure, and AI domains. Features in-depth video examples, written breakdowns, and helpful reference patterns. Watch senior engineers and managers answer these questions in mock interview videos.