TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

2 pointsby kvnnover 13 years ago
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?

no comments

no comments