Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8196305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:26:06+00:00 2026-06-07T05:26:06+00:00

I am using Spring MVC for a web app The response time is around

  • 0

I am using Spring MVC for a web app

The response time is around 250ms and speed is everything with this app

So when it comes to defining the Controller classes I have made then prototype so many can be running at the same time. The app is stateless

I hope to do some performance test soon but wanted to get opinions if making controller classes prototype would improve performance over singleton?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T05:26:07+00:00Added an answer on June 7, 2026 at 5:26 am

    Unless your controller methods are not thread-safe it is better to use “singleton” option. As otherwise any a new instance is created for each request.

    But actually I don’t think you will notice a great difference in performance for a single request as an overhead of new instance creation should be very small.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using spring web mvc for my app's UI part.. By using following
I have configured in following way that spring MVC app using Spring 3.1.1.RELEASE web.xml
I am writing Web app in java using Spring Web MVC framework. Somehow validation
I'm writing a Spring 3 MVC based web app, using JSPs for my view
I am building a web app using Spring MVC and I am having a
I'm using Spring MVC for a web app. I want to use OpenID for
I have a web app running Spring 3.0 and using Spring-MVC. I have a
In my webapp, I am using Spring MVC as my controller layer. However, using
I'm creating a web application using spring mvc. I have started to incorporate the
I want to integrate facebook login into my web application developed using Spring MVC.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.