News for hackers. Stuff that matters.
Re:UK Parliament petitions site crashes under traffic for pe... by pmuk on Thursday March 21, 2019 @07:06AM (#19450919)
Does your site cache the numbers? It could be really useful to take some of the load off the main petition's site, as people keep going there and refreshing the page which is overloading it.
Re:UK Parliament petitions site crashes under traffic for pe... by franky47 on Thursday March 21, 2019 @07:23AM (#19451014)
It refreshes every 5 seconds, and uses the data from the petition JSON API (just add .json to a petition URL).
Re:UK Parliament petitions site crashes under traffic for pe... by pmuk on Thursday March 21, 2019 @07:37AM (#19451107)
Do you store the results locally on your server so that it isn't making multiple requests for each visitor?