0

Hi,

I am working on a web application having more then 5 lakhs users accessing pdf file from server.
Each time a pdf is loaded from server which may consume network bandwidth(our assumtion).
Need suggestions for how can we restrict only 100 or any number of users at a time for retrieving pdf only
or any other suggestion

4
Contributors
3
Replies
23
Views
3 Years
Discussion Span
Last Post by diafol
0

Hmm well I would probably reccomend displaying the PDF in some kind of PDF viewer in the browser. This way you can initiate bi-directional communication about the state of the PDF's being viewed. Letting the user download the PDF and view it locally won't work obviously because you can't control anything about that process once the user has the file.

0

Restrict "100 at a time" is a bit ambiguous. Does this mean "simultaneous downloads" - however that would be controlled, or do you want to limit to 100 downloads in a specified time period. Or 100 downloads and that's your lot, doc can not be downloaded past that limit.

For downloading, you could set a link to a control page that checks the number of downloads for a specified file (in the url querystring) and then redirects to that file or it can flag a message saying "That's All Folks!"

For that ideally, the link wouldn't be displayed at all once the limit was reached, but we all know that 30 users, say, could be "on a page" with a live link when the limit was reached, so you'd need the control structure to deal with the "just too late" users requesting the file.

Having said that, I doubt whether you're after a 100 downloads for a lifetime. Can you be more specific with regard to your needs?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.