TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Logic flow for CDN, Web App and Processing servers

2 点作者 kvnn超过 13 年前
I'm building a website that allows user to upload and watch videos. Don't get down in the dumps - we haven't lost another man to another Youtube clone - the content is extremely narrow. And awesome.<p>There are three servers :<p>&#62; CDN &#62; Web App &#62; Video Processor<p>The Web App server transfer user uploads to the CDN. The Video Processor server downloads uploaded videos from the CDN and processes them - spitting out multiple video types, thumbnails, and some meta data.<p>From here, the Video Processor server must do two things : (1) Upload the new data to the CDN (solved), and (2) Push references to the CDN data in the Web App's database (problem).<p>PROBLEM : How should the Video Processor server get data about CDN files (video urls, titles, etc) to the Web App?<p>SOLUTION A : Save the processed video data in a txt file, upload to Web App server when finished, and set the Web App server to import the txt files into a database on regular intervals.<p>How good is Solution A? Do you have better?

暂无评论

暂无评论