I am building an application that plays opus 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.
I am using spring-mvc and the web application runs on tomcat. I get the audio files using:
<mvc:resources mapping="/audios/**" location="file:/path/to/the/mounted/nas"/>
and I serve them in a <audio>
tag.
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.
Could you please suggest me how to improve the application
Thanks