title: How to improve the streaming of static resources in spring-mvc and tomcat
body: <p>I am building an application that plays <strong>opus</strong> audio files stored on a nas mounted on the application server. The application reads these files, and send them to the HTTP response output stream.</p>
  
  <p>I am using spring-mvc and the web application runs on tomcat. 
  I get the audio files using:</p>
  
  <pre><code>&lt;mvc:resources mapping="/audios/**" location="file:/path/to/the/mounted/nas"/&gt;
  </code></pre>
  
  <p>and I serve them in a <code>&lt;audio&gt;</code> tag.</p>
  
  <p>Now I would like to make the application extremely reactive and multi user friendly. If I have 20 people playing many audio simultaneously, the system gets very slow and I do not know what is the best thing to do.</p>
  
  <p>Could you please suggest me how to improve the application</p>
  
  <p>Thanks</p>