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 struts 2 default behaviour to handle multiple requests 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 "struts 2 default behaviour to handle multiple requests" Watch "struts 2 default behaviour to handle multiple requests" New topic
Author

struts 2 default behaviour to handle multiple requests

Jasvir Rupana
Ranch Hand

Joined: Oct 13, 2010
Posts: 52
Hi all,
if our application is having potential of getting thousands of concurrent requests, can we go with struts2 ? i am scared because by default struts creates new instance for new request. also i don't want single instance to handle all the request with threads .

any suggestions please.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

There is no reason to expect Struts cannot handle thousands of concurrent requests. Creating Action instances is probably the least of your performance worries. You'll need enterprise-level hardware for both your application and database server (probably more than one per), a very fast network, an efficient design and so on. Our EnterprisePerformance FAQ is a good place to start.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Jasvir Rupana
Ranch Hand

Joined: Oct 13, 2010
Posts: 52
thanks alot Ess
 
 
subject: struts 2 default behaviour to handle multiple requests
 
Similar Threads
Clear my doubts please ...
How Action class instance will be created?
single instance of servlet (interview question)
Servlet and Requests
struts2 thread safety and performance