YouTube Clone in Go

agolangf · · 1279 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Noob Question: What is the ideal framework, stack, language, algorithm or method to build a video site. Something like a self hosted YouTube or Vimeo clone with minimal features.</p> <p>Should I learn how to build a cms first or is there a simpler and elegant way to implement this without reinventing the wheel.</p> <hr/>**评论:**<br/><br/>xiegeo: <pre><p>You will be look at building a content delivery network more than building a website. </p></pre>Pls_I_Need: <pre><p>I used YouTube as functional description. This will be for hosting proprietary videos so it will be a lot smaller in terms of traffic and global cdn.</p></pre>Redundancy_: <pre><p>Note that there are existing solutions for doing this internal to a company, one of the best approximate algorithms to solving a problem at a company is to only solve things with proprietary solutions if you&#39;re going to sell them, you can&#39;t find a solution you can buy or they have a big return on investment :)</p></pre>Pls_I_Need: <pre><p>Can it be done in Golang?</p></pre>steve_in_finland: <pre><p>Your question is akin to asking &#34;Can I build a library with concrete?&#34;</p> <p>Yes. It is possible to do this in Golang. Did that help? No. What you need is a design:</p> <ul> <li>User uploads video. <ul> <li>What happens?</li> <li>It gets transcoded, processed, and stored &#34;somewhere&#34;?</li> </ul></li> <li>User visits site. <ul> <li>What happens?</li> <li>You have to talk to the back-end and get a list of videos, tags, meta-data, etc.</li> </ul></li> <li>User clicks &#34;play&#34; on a video <ul> <li>What happens?</li> <li>File must be streamed.</li> </ul></li> </ul> <p>All of that ignores the fancy front-end and javascript magic people expect. If you can break the process down into steps you might be able to hack things together. Otherwise your qusetion reads a littley naively and I would ask &#34;What is your budget?&#34;</p></pre>Pls_I_Need: <pre><p>Indeed I&#39;m naive! I should have said &#34;Is anyone aware of a open source CMS written in&#34; Golang &#34;which I can make a site like YouTube?&#34; I&#39;m told Golang handles concurrency better than any other language (Nodejs)</p> <p>I found a lengthy answer here <a href="https://stackoverflow.com/questions/4216430/python-cms-to-create-a-video-site-like-youtube" rel="nofollow">https://stackoverflow.com/questions/4216430/python-cms-to-create-a-video-site-like-youtube</a></p> <p>Next time I&#39;ll frame the question better. The budget will come after I have figured the ideal way forward; off-the-shelf or custom dev. </p></pre>unix15e8: <pre><p>Searching for <a href="https://www.google.com/search?q=site:github.com+video+streaming+golang" rel="nofollow">video streaming</a> and <a href="https://www.google.com/search?q=site:github.com+video+server+golang" rel="nofollow">video server</a> on GitHub returned some interesting projects.</p></pre>Pls_I_Need: <pre><p>Awesome, thank you very much!</p></pre>xiegeo: <pre><p>Then Go is a good language to use, especially if the businesses wants to keep their videos in their own servers. </p> <p>On the hard requirements side of things, you can really use any language for the website, since most of the work is in transfering, transcoding, and storing of the videos, what you use to serve the front end and fire of transcoding scripts are going to have negligible resource usages. </p></pre>SeriousM00nlight: <pre><p>Video encoding and queues too but AWS has a few services to turn that into an easy to scale solution with a few API calls. It’s s massive project, but perhaps less so than when YouTube was created. Still don’t underestimate it.</p></pre>tv64738: <pre><p>Hi, I worked for one of those &#34;we could have been Youtube&#34; online video sites back in the day. The core functionality (ignoring things like recommendations, DMCA, massive popularity, etc) is not a massive project at all. Three programmers and a couple of months should get you set up well enough; even more so in this modern world of on-demand cloud storage and compute.</p></pre>SeriousM00nlight: <pre><p>There’s a lot more than just the programming. You’re underestimating it.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1279 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传