I have a production system use-case where my controller code depends on some external files (Metadata information of some relevant business logic; 3-5 JSON files which in total would amount to 1GB of data) which gets updated frequently to create features for my data science model.
I'm trying to think about what would be the best approach to copy these external files on all machines serving my request. Imagine I've 50 EC2 machines running right now serving requests from the load balancer and I receive a notification from SNS that the external files have been updated. What would be the best way to fetch new metadata file in all 50 EC2 machines? I received a comment from Senior that I should use an event-based mechanism instead of polling.
Controller code is written in Java - Spring Boot, Cloud technology in use - AWS