title: Spring @Service vs Object Service
body: <p>I have a question about <code>@Service</code> in spring, but i didn't find any response about it. </p>
  
  <p>Situation : </p>
  
  <p>I have a web application with <code>@RestController</code> using spring</p>
  
  <p>Now for my service layer, I saw on some project two way of processing</p>
  
  <ul>
  <li><p><code>@Service</code> on service class and <code>@Autowired</code> on controller class (Create a bean that is a singleton excepted if we change the scope)</p></li>
  <li><p>Create a object like a service </p>
  
  <p>MyService service = new MySerivce()</p></li>
  </ul>
  
  <p>So my questions are : </p>
  
  <ul>
  <li><p>Create a object each time for each call of controller will not be a issue for memory ? If i create a load test (with Apache Jmeter) and send 1000 requests, it will create 1000 object my service so could be a problem no ? </p></li>
  <li><p>Create a singleton with <code>@Service</code> will not be a issue for memory but, how spring will handle 1000 requests on 1 seconds for example. Will he push requests on a sort of queue and execute one at a time ? </p></li>
  <li><p>What is the best practice for Service declaration and why ? </p></li>
  </ul>
  
  <p>Thank in advance for any response</p>