Hi, I’m sorry if this is slightly OT, but I’m trying to find a way to do
the following. I have a bunch of processes that generate regular update
files. Each file may be between 100KB - 4MB in size.
On the other side, I have people who want to pick up the most recent
version of this file. So, I need to give them a fixed URL to the file.
When they make a request, they would like to get only the most recent
file. Initially, I thought that something like FTP would work, but I
run into the problem that if a request comes in when the file is being
updated, the client may not get a valid file.
The other extreme is to have an upload controller and a download
controller and then store the file in a database, so that it can be
served up through the database. The database serializes it so that I
don’t have to worry. But, since the files can be large, it seems a bit
of a waste to use this approach.
Is there a better way? Anything that you would recommend?