On 15/03/12 15:17, MZMcBride wrote: > Hi. > > I occasionally get asked about what a reasonable rate for querying the API > of a Wikimedia wiki is for a particular script or tool. I don't really know > the answer other than "be reasonable" and "specify an informative > User-Agent." That's essentially what I said when asked here: > https://meta.wikimedia.org/w/index.php?title=Tech&diff=3569658&oldid=3569474 > > If there's an authoritative answer (on Meta-Wiki or mediawiki.org or even > wikitech), that'd obviously be ideal. I'd also settle for a mailing list > post. I looked at <https://www.mediawiki.org/wiki/API:Main_page> to see if > it mentioned "limit" or "rate", but nothing came up. It's a fairly common > question; it should probably be a bit easier to find. > > MZMcBride
When people ask me that question, I tell them to limit the concurrency, not the request rate. You can't do much damage with a single thread, whether queries complete in 10ms or 10s. But you can certainly do a lot of damage if you send a query once per second that takes 100 seconds to complete, using 100 concurrent clients. This is especially relevant for people who write toolserver scripts and the like. It's easy to write a server-side script which accidentally allows 100 concurrent connections to Wikimedia, when 100 people happen to use it at once, or if someone decides to try a DoS attack using the toolserver as a proxy. -- Tim Starling _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
