Limit calls to external database with Python CGI

Posted by Matt Ball on Stack Overflow See other posts from Stack Overflow or by Matt Ball
Published on 2009-12-16T04:16:55Z Indexed on 2010/05/27 13:01 UTC
Read the original article Hit count: 173

Filed under:
|
|

I've got a Python CGI script that pulls data from a GPS service; I'd like this information to be updated on the webpage about once every 10s (the max allowed by the GPS service's TOS). But there could be, say, 100 users viewing the webpage at once, all calling the script.

I think the users' scripts need to grab data from a buffer page that itself only upates once every ten seconds. How can I make this buffer page auto-update if there's no one directly viewing the content (and not accessing the CGI)? Are there better ways to accomplish this?

© Stack Overflow or respective owner

Related posts about python

Related posts about sql