Design a temporary email service where email addresses and received emails are valid for only 10 minutes.
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
Related questions
Design temporary email generation service.Related courses



