Friday, 15 March, 2013
Rebuilding the sync
In December we took the first step in rebuilding Skrivr's sync to serve pages faster than before. Since then we've worked on improving it further to manage very large amounts of traffic. Here is what we have done so far.
Skrivr now runs a "is it currently syncing?"-check. When a page is requested the server checks if the site is mid-synch. If so (for example when there is a large amount of incoming traffic) another sync will not be initiated.
To improve this further we added a time-comparison check that looks at the last time a sync was performed. It will only initiate one if at least 10 seconds have passed since the last one.
This is a two-step validation since both tests need to return the right answer.
/Andreas & Jaan