• 5oap10116@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    7 hours ago

    I’m sure we’ve all experienced this to some extent, but I also feel like confirmation bias can play a large role here, so im curious. Is there actually something running in the background that boosts ads over actual content? Is there any literature or first hand employee (YouTube or similar) experience on this

    • x00za@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      9
      ·
      5 hours ago

      You have in-between content caching servers. Ads are always cached as they are temporary and will almost always be served. Then you have the local Google webserver you connect to, which contacts a local Google CDN close to you. This CDN will have a cache of videos that are “trending” worldwide and in your area/country. If you ask the CDN for an obscure video, it will grab the video from the storage servers. The CDN will then start caching the video depending on the traffic it started to receive. This is why ads are always fast and why videos have different loading times.

      I don’t work for YouTube but I’m an experienced webdev and this is how one would do it.

      • randint@lemmy.frozeninferno.xyz
        link
        fedilink
        English
        arrow-up
        2
        ·
        4 hours ago

        I remember also seeing the explanation on Reddit (or maybe it was Lemmy?), and what you said is basically exactly the same as what I’ve seen.

      • NotNotMike@programming.dev
        link
        fedilink
        arrow-up
        5
        ·
        6 hours ago

        CDN would be my guess as well. Maybe not different, but they would definitely have their ads queued up on every CDN possible while the video content is unlikely to be on your nearest CDN unless it’s a Mr. Beast video