This may be off topic and slightly unrelated to WiseJ -possibly.
But here’s the question. We are re-writing an application that serves millions of files. Currently over 18 million files. When we wrote it 20 years ago – we used Java/Apache Tomcat with clustering. Currently using 4 Tomcat cluster nodes on 2 servers. It is working quite well still, however it is dated and adding modern features that we can easily provide with WiseJ is our goal.
But – is there a way we can offload the serving of the files – which as for the most part PDF documents to other servers behind our firewall as to not affect performance of the WiseJ application itself ? Some of the documents are quite large – 70+ MEG. I’m afraid if we have a hundred users concurrently accessing documents the web application performance will degrade.
Our back end – we are planning on using a AKKA.NET cluster setup. Ideally, we would like the AKKA.NET nodes to serve the files as it is elastic and can grow as needed. So the question is – how can we get a cluster node to serve the files to lets say the PDJ.JS viewer (or other viewer) since it is running in the WiseJ application ?
Any comments/advice welcomed.
Simply allow CORS on your servers. It’s just an header you have to add to the response.
Access-Control-Allow-Origin: *
You can restrict it to your site for security:
https://en.wikipedia.org/wiki/Cross-origin_resource_sharing
Please login first to submit.