
I've thought about it and the way static pages will be updates is they will first be written to temporary files, then moved in place of the existing ones. Isn't there a race condition? The answer is no. Technical DesignĪn experienced user might ask if this design does not have a race-condition – what happens at the moment when the new static page is generated and user loads the same page. And the third script will use the entries in the database and generate HTML pages. Another script will then add the titles to the lightweight sqlite on-disk database in case I ever want to make the website dynamic. Because of this I will go with generating static HTML pages for the content.Ī Perl script will run every 30 mins from crontab, get website, extract titles and URLs. I do not want any dynamic parsing to be involved when loading the website. I want the new website to be as fast as possible even when the server is loaded.

Unfortunately a downsite is that as it's shared hosting, sometimes the server gets overloaded and serving of dynamic pages can become slow. The best part is that you get shell access. Overall it is great hosting company and I have been with them for more than a year now. I use DreamHost shared hosting to run this website. Reddit Media Website's Technical Design Sketch Update: Done! The site is up at reddit media: intelligent fun online. Also I will blog how the tools work and what ideas I used.
BEST FTP PROGRAM REDDIT FULL
I will release full source code of website with all the programs that generating the site.

I like to get things done rather than making my code perfect. I didn't worrying about code quality or what others will think about the code. I developer this website very quickly and dirty by just throwing code together.
