[tbnl-devel] Re: TBNL Example

Zach Beane xach at xach.com
Fri Feb 25 22:01:01 UTC 2005


On Fri, Feb 25, 2005 at 10:51:17PM +0100, Edi Weitz wrote:

> The alternative would be a separate thread which checks for expired
> session independently of server traffic.  I think that's overly
> complex, though, and the benefit of the current solution is that it
> kind of automatically adapts to the server load.

An option I've used in the past and intend to use with TBNL in the
future is to have a set of URLs with access restrictions and whose
handlers perform required periodic tasks. Then you could do something
like this from cron:

   30 * * * * wget http://my.site.com/secret/hourly-stuff

(This sort of thing is not needed for sessions for the reasons you
provide, but I thought I'd bring up the possibility of a non-thread
solution for tasks that need to be done periodically.)

Zach




More information about the Tbnl-devel mailing list