4 ms·
Presidential Election Results
- bemmu 10y agoReally sleek view of the results. Thought this loaded unusually fast and looking at the code, all scripts are defer asynced at the bottom. The data seems to be polled every 10 seconds from https://intf.nyt.com/newsgraphics/2016/11-08-election-forecast/president.json https://intf.nyt.com/newsgraphics/2016/11-08-election-foreca...
- ethbro 10y agoHypothetical: if you deploy a webpage for a time-limited event (e.g. vote results) with an async update cycle, what options for throttling do you have if your load exceeds expectations? Is there a best practices for having a server-controlled "Plan B" throttling mechanism? I'm making the assumption that the majority of users will load the page and leave it running unmodified.
- HappyTypist 10y agoYou add exponential falloff if the server returns anything but a 200.
- deleted 10y ago[deleted]