Estimate the load for a service that makes 100 million links a month.
Sketch your own answer first, then compare it with the one below.
A strong answer
A month is about 2.6 million seconds, so 100 million links is about 40 creations a second. If reads are 100 times writes, that is about 4,000 redirects a second on average, and a peak of several times that.
Storage is the other number. Five years of links is 6 billion records. At 500 bytes each that is about 3 terabytes. State your assumptions and invite the interviewer to change them.
Sources
- Roy Fielding, Mark Nottingham, Julian Reschke (2022). RFC 9110: HTTP Semantics.