Hey guys, I am a NextJs Dev. I want to make and anime streaming website. Ofcourse I am totally broke. I can’t afford a database. Even if I could how does that work anyways? I mean, do I have to upload every single anime?? That sounds like a lot of work. How do sites like zoro or 9anime deal with it? Do they have their own db? I thought about webscrapping but I am not sure how it’s done, if anybody could explain in detail I would be grateful. I am trying to understand how those stuffs really work. Also, I know an api called Consumet but I want to be able to make my own! I am working on a french anime website so I need to figure out how I can get the animes.

My previous website using Consumet API (still works check it out :)) https://poketv.vercel.app/

  • redcalcium@c.calciumlabs.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    I don’t want to sound mean and defeatist, but steaming service is very expensive to run due to the sheer amount of bandwidth and storage cost required. You can host standard website for free these days, but video hosting is another story.

    Consider a standard 1080p video stream @ 16mbps. If your server has 1gbps bandwidth, you can only serve 62 people at the same time. You’re going to need more and more bandwidth as your users grow or they’ll get irritated and leave because your servers don’t have enough bandwidth to serve videos to all of them (lots of buffering and timeouts).

    So how much will those bandwidth cost you? If you plan to host them in a cloud provider, you should know that they’ll usually charge by the amount of egress traffics you consume. If you maxed out a 1gbps link for a month in an AWS server, Amazon will charge you around $0.1 per GB, which means you’ll get a hefty $32,400 at the end of the month for delivering 324TB of traffics.

    Now AWS is literally the most expensive provider in term of bandwidth, so you might want to use a provider that provides unmetered billing. This usually means traditional colocation service where you buy your own physical servers and only pay for electricity and internet, or renting out dedicated servers which will cost a lot upfront but ended up being cheaper than pay as you go cloud providers. But you’ll still looking to pay thousands $ each months to pay for the bandwidth.

    Some pirate streaming sites cheats by uploading their videos into various cloud file storage such as Google drive and playing cat and mouse by constantly creating a new account and reuploading their videos when when their account for banned for violating tos. You might be tempted to go that route as well, but considering how you’re already sweating at the prospect of finding and uploading all anime files yourself, constantly creating a new cloud storage account and constantly reuploading your anime files doesn’t sound really great, right? Some pirate streaming sites literally have full time staff doing this stuff all day, constantly keeping up with new anime release, downloading them released schene torrents or ripping them out from Crunchyroll, then uploading to a cloud storage account or other video hosting services (and reuploading again if it were taken down due to tos violation).

    I think this project is way too big for you right now, but pretty fun to think about especially the logistics part.

    • Nemila@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Thank you for your opinion and yeah you’re right! This is a lot of work and probably not something I can do right now I did learn new stuffs tho so it’s cool.

      • redcalcium@c.calciumlabs.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 year ago

        My advise if you want to work on a personal project which can be tied to piracy or copyright infringement is to avoid associating your real identity to it. I heard too many stories about experienced devs not getting any job offers or otherwise shafted due to past involvements with these kind of projects. For example, people suspect that Microsoft’s decision cancel AppGet acquisition (and create WinGet instead) and shafted its developer (forcing him to kill AppGet) was due to his past contribution to Sonarr (a popular tool than can be used for piracy mentioned by others in this thread).