Ask HN: Logic flow for CDN, Web App and Processing servers
There are three servers :
> CDN > Web App > Video Processor
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.
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).
PROBLEM : How should the Video Processor server get data about CDN files (video urls, titles, etc) to the Web App?
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.
How good is Solution A? Do you have better?
0 comments
[ 0.23 ms ] story [ 14.0 ms ] threadNo comments yet.