Lädt...

🔧 Design a short url for system design interview


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

This article is a personal note from "System Design Interview - An Insider's Guide by Alex Xu". It's intended as a memory refresher for system design interview in hurry.

hash funciton

  • to generate a shorter URL, use a hash function to map between short URLs and long URLs. For example, hash functions like CRC, MD5 and SHA-1 are used.

hash value

  • to generate short URLs of length "n", find the value that meets "back-of-the-envelope" estimation. For example, a system is identified to support 365 million unique URLS, then given the system generates using [0-9,a-z,A-Z], "n" has to be 62^n >= 365 M (roughly 7).

hash collision

  • to generate unique short URLs, two approaches can be taken:
    1. *Base 62 conversion *- converts the same number between its different number presentations
    2. Hash the first "n" number of characters and append it to the rest to generate a short URL. If the length of the result still exceeds "n", repeat the process.
      • As this can be time-consuming, "bloom filter" can be used to improve performance. Bloom Filter is a space-efficient probablistic technique to test if an element in a number of a set.
...

🔧 Design a short url for system design interview


📈 39.93 Punkte
🔧 Programmierung

🔧 Top 6 System Design Patterns to Ace Every System Design Interview


📈 24.07 Punkte
🔧 Programmierung

🎥 The brief said short so she made the story short 🎯 #Shorts


📈 23.7 Punkte
🎥 Video | Youtube

🔧 Design A URL Shortener / Tiny URL


📈 20.12 Punkte
🔧 Programmierung

🔧 The Software Design /System Design Interview Preparation RoadMap (with Resources)


📈 20.05 Punkte
🔧 Programmierung

🔧 Design a key-value store for system design interview


📈 20.05 Punkte
🔧 Programmierung

🔧 Design a consistent hashing for system design interview


📈 20.05 Punkte
🔧 Programmierung

🔧 Design a consistent hashing for system design interview


📈 20.05 Punkte
🔧 Programmierung

🔧 Design a rate limiter for system design interview


📈 20.05 Punkte
🔧 Programmierung

📰 Mastering GenAI ML System Design Interview (2): Design ChatGPT Memory Feature


📈 20.05 Punkte
🔧 AI Nachrichten

🔧 Design interview guide: Low-level OOD to Advanced System Design


📈 20.05 Punkte
🔧 Programmierung

🕵️ [PHP] Paid Bitly URL Shortener V1 - Short links and show your ads


📈 19.87 Punkte
🕵️ Hacking

🕵️ Best paying short url services for 2019


📈 19.87 Punkte
🕵️ Hacking

🕵️ Semantic sm short url script v2.0 Sql injection Vulnerability


📈 19.87 Punkte
🕵️ Sicherheitslücken

🕵️ CVE-2024-5380 | jsy-1 short-url 1.0.0 admin.php cross site scripting (I8UP2A)


📈 19.87 Punkte
🕵️ Sicherheitslücken

🔧 How to Create a Custom Short URL for My Brand?


📈 19.87 Punkte
🔧 Programmierung

🕵️ CVE-2023-47225 | Short URL Plugin up to 1.6.8 on WordPress AJAX authorization


📈 19.87 Punkte
🕵️ Sicherheitslücken

🔧 A simple short-lived URL shortener solution with AWS and GitHub actions


📈 19.87 Punkte
🔧 Programmierung

📰 Short-URL Services May Hide Threats


📈 19.87 Punkte
📰 IT Security Nachrichten

📰 Short URL Blocking in Spam Filter Good? Bad?


📈 19.87 Punkte
📰 IT Security Nachrichten

🕵️ [PHP] Paid Bitly URL Shortener V1 - Short links and show your ads


📈 19.87 Punkte
🕵️ Hacking

🔧 Interview Question: Tell me when you decided to make short-term sacrifices for long-term gains.


📈 19.74 Punkte
🔧 Programmierung

📰 Programming Interview Questions Are Too Hard and Too Short


📈 19.74 Punkte
📰 IT Security Nachrichten

🔧 System design | High Level Design and Low Level Design | Part 2


📈 16.23 Punkte
🔧 Programmierung