How do manage the limit of executions to be done by hour (Max: 1000 requests per hour) without a dat
Posted
by cslavoie
on Stack Overflow
See other posts from Stack Overflow
or by cslavoie
Published on 2010-05-04T13:54:22Z
Indexed on
2010/05/04
13:58 UTC
Read the original article
Hit count: 183
I am currently developing a script in PHP to fetch webpages. The fact is that by doing so, I occasionally do too much requests to a particular website. In order to control any overflow, I would like to keep trace of how many requests have been done in the last hour or so for each domain. It doesn't need to be perfect, just a good estimate.
I doesn't have access to a database, except sqlite2. I would really like something really simple because there will typically be a lot of updates, which is kind of heavy for a sqlite database. If no one has a magical solution, I'll go for sqlite, but I was curious what you can come up with
Thank you very much
© Stack Overflow or respective owner