The answer for this question used 2 databases to store the Base-10 Ids, since no two long URLs will have the same short URL, is it possible to use 1 database?
Course: Grokking Modern System Design Interview for Engineers & Managers - Learn Interactively
Lesson: https://www.educative.io/courses/grokking-modern-system-design-interview-for-engineers-managers/qV6WgYr4jJr