[FileSystem] Issues with multiple frontend servers.

[FileSystem] Issues with multiple frontend servers.

  
Forge Component
(25)
Published on 28 Nov (3 weeks ago) by Matthias Preuter
25 votes
Published on 28 Nov (3 weeks ago) by Matthias Preuter

Hey,

Sometimes when reading a previously added file we get an error stating that the file does not exist at the given location. This only seems to happen at our production environment after we added a 2nd frontend server.

Note, we are storing the files in the temp folder.

Is there a solution in solving this problem? Or should we resort to database storage instead?


Cheers, Joey.

File System is not shared between frontends. You need either to save the files on the database as binary, have a shared volume between the servers or use another technology ie: amazon s3 buckets.

Maybe it is a solution to publish the app in a seperate zone, that only is configured for 1 of the 2 Front End Srevers.