This week's book giveaways are in the Cloud and AI/ML forums.
We're giving away four copies each of Cloud Native Patterns and Natural Language Processing and have the authors on-line!
See this thread and this one for details.
Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Scalability of Spring Framework

 
Ranch Hand
Posts: 90
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How does Spring Framework scale with high volume traffic?

Does Spring Framework use non-blocking IO by default? Can this be configured?

How does Spring Framework use OS threads to handle requests? Does Spring Framework support Node.js-style non-blocking request handling?
 
Ranch Hand
Posts: 645
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting fact is, Servlet is supporting NON-Blocking requests since 3.0 released in end of 2009, Where as spring MVC is supports it since Spring 4.0 released Dec 2013.
Another interesting fact is Java is supporting it since jdk 1.4 released 2002 :-) But was too complex to use.

Google for DeferredResult + Spring MVC , you will find many examples.
So to answer your questions.

1) Does Spring Framework use non-blocking IO by default - NO
2 & 3) Can this be configured - Not configured but you can write specific MVC controllers
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Daniel,

Are you talking about web apps? Spring MVC sits on top of the Servlet API, which itself is the interface between the container and the web application. Threading and Network-IO is managed by the container, not by Spring. Spring MVC doesn't do any threading and IO itself

Almost every container (atleast all of them I know) maintains a thread pool that can be configured. Also, most of them can be configured to use NIO
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!