Den 17/12/2010 kl. 10.28 skrev Shamail Tayyab:

>    I have this situation..
> 
> - We need to serve static files(images), lots of them, probably 100s
> of them per second.
> 
> Our website is in Django and we need to support something like this:
> 
> 1. a URL like /xyz.jpg should open an image.
> 2. image should be accesibe via this path only because we associate
> some data while an image is served, viz number of hits, bandwidth
> consumed, hits per second etc.

I'm not sure this is even a task for Django. If your primary concern is 
performance, try doing this directly in Apache or another web server via 
rewrite rules and use the access logs to do the accounting. Apache is good at 
access statistics.

If your primary concern is statistics, there is no way you can get exact 
figures. There may be any number of caching mechanisms between you and the 
client that you don't control so GET requests may never reach your server. 
Anyway, at this level there's no such thing as a "cdn version" because you are 
supposedly in control of the web server that does the mapping from a GET 
request to a file on the filesystem.

Erik

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to