सभी उदाहरण

उदाहरण

URL शॉर्टनर एक अरब क्लिक कैसे संभालता है

एक API और डेटाबेस से रिज़ॉल्व होता शॉर्ट लिंक, फिर पॉपुलर लिंक के लिए कैश, दो API के आगे लोड बैलेंसर, और एक API का गिरना, जबकि ट्रैफ़िक दूसरे पर चला जाता है।

यह वीडियो सिस्टम डिज़ाइन स्किल से बना है।

  • 1:11
  • सिस्टम डिज़ाइन
  • Charon की आवाज़ में
  • अंग्रेज़ी

प्रॉम्प्ट से बना

How does a URL shortener handle a billion clicks? Show the read path, a cache, and scaling out.

वीडियो की ट्रांसक्रिप्ट

A billion clicks a day: your short links must redirect without overwhelming storage.

Your browser calls an API. The API reads the destination from a database, then returns a redirect.

That averages over eleven thousand requests per second. Here, database lookups take eighty milliseconds. Storage becomes the bottleneck.

Add a cache for popular links. On a miss, read the database, then cache the destination.

Cache hits take two milliseconds here, skipping storage. Expire entries and invalidate changed links; cached destinations can become stale.

Add a load balancer, then another stateless API. Both share storage. Extra servers cost more.

What if one API fails? Health checks remove it; traffic moves to the survivor. Keep spare capacity.

Browsers request redirects. The balancer distributes clicks, APIs resolve links, the cache skips reads, and the database keeps mappings.

और उदाहरण

आपका टॉपिक, करीब एक मिनट में बनकर तैयार।

आपके पहले 2 वीडियो फ़्री हैं, हर वीडियो 1 मिनट तक का, वॉटरमार्क के साथ। कार्ड की ज़रूरत नहीं। पूरा प्रोडक्ट, हर आवाज़ और हर स्टाइल समेत।