TinyURL System Design | System Design Interview with Microsoft SDE-2
Interview Simplified
0:00 / 0:00
TinyURL System Design | System Design Interview with Microsoft SDE-2
3 122 просмотра · 1 год назад
Interview Simplified
6,45 тыс. подписчиков
3 122 просмотра · 1 год назад
Welcome to the ultimate guide on System Design for a URL shortening service like TinyURL! In this detailed video, we explore the architecture, key components, and trade-offs involved in designing a large-scale URL shortener system. Whether you're prepping for a system design interview or aiming to strengthen your understanding of how TinyURL-like services operate, this video has you covered with best practices and practical insights.
What You Will Learn:
Core architecture of a URL shortening service
Key design considerations for scalability, reliability, and availability
How to handle high read/write traffic and efficiently generate unique short URLs
The role of databases, caching, and load balancing for quick access and retrieval
Real-world examples and case studies to solidify your understanding.
Timestamps:
0:00 Introduction - What is a TinyURL Service
0:45 Introduction - Why do we need a Tiny URL Service?
1:46 Deciding Requirements - Functional Requirements
2:56 Deciding Requirements - Non-Functional Requirements
4:12 Capacity Estimation - DAU / MAU
5:10 Capacity Estimation - Throughput
6:46 Capacity Estimation - Storage
7:48 Capacity Estimation - Memory
8:36 Capacity Estimation - Network/Bandwidth
10:24 API Design - Generate a Short URL
12:32 API Design - Get Long URL back
13:43 High Level Design - Generate Short URL
15:20 High Level Design - Problem: Collisions
16:37 High Level Design - Approach 1: Random String Generation
17:48 High Level Design - Approach 2: Random String Generation using LongURL
19:38 High Level Design - Approach 3: Check DB for Collisions
22:09 High Level Design - Approach 4: Lets Keep Counters
24:33 High Level Design - Approach 4 (Continued): Zookeeper
25:43 High Level Design - Approach 4 (Continued): Base 62 Encoding
30:15 High Level Design - Approach 4 (Continued): Final Design Diagram
32:12 High Level Design - Get Long URL
34:09 Deep Dive Insights - Database Selection
35:30 Deep Dive Insights - Data Modeling
37:23 Deep Dive Insights - Redirection from Short URL
Looking for more system design resources? Visit our website at www.sweetcodey.com where you'll find comprehensive tutorials, courses, and more to boost your system design knowledge.
Don’t forget to like, subscribe, and hit the bell icon to get notified of our latest videos! Got any questions or topics you'd like us to cover? Drop a comment below.
Free Resources for Interview Prep: https://www.sweetcodey.com
Happy learning!