This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Doubt : How struts action servlet handles millions of requests at the same time. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Doubt : How struts action servlet handles millions of requests at the same time." Watch "Doubt : How struts action servlet handles millions of requests at the same time." New topic
Author

Doubt : How struts action servlet handles millions of requests at the same time.

DharmaRao Edula
Greenhorn

Joined: Feb 28, 2008
Posts: 10
How struts single action servlet handles millions of requests ata the same time. Does the framework creates millions of threads( sigle action servlet instance) to handle millions of reauest at the same time ( e.g if you take facebook it has millions of requests at the same time).
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

Struts does not create threads. The servlet container does. The container works like any other server, dispatching threads or processes to handle requests
The number of threads is limited by the operating system. It is unlikely that a single server (hardware or software) could handle more than a couple thousand simultaneous connections, much less a million, so it is common to use server farms or clusters to delegate requests among multiple machines.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Doubt : How struts action servlet handles millions of requests at the same time.
 
Similar Threads
How to pass url to Struts1.3
Struts handle first request.
How control goes from jsp page to web.xml
how does a single action servlet handles millions of requests at the same time in str
Action class object pool?