What is the preferred way of serving static files for an application that is deployed in a microservices architecture (in production)?
Let's say for simplicity that I have 3 application servers and one load-balancer that forwards requests to these servers.
- Should the load-balancer store the files and serve them imminently upon request? OR..
- Should the load-balancer forward static files requests to the different application instances (each request to a different instance)?
Is there a best practice for this?