Local File Caching
External storages may affect performance when requesting files, thus it is recommended to use a local file caching mechanism.
Each storage strategy allows for enabling of local file caching. A general overview of the caching mechanism is shown in the picture below:
The idea of caching files locally is described below:
-
User is uploading data:
-
Data stream is locally cached as file on the local file system
-
Data stream is sent to configured storage through storage strategy
-
-
User is requesting for data:
-
Local cache is requested for the data
-
If file exist, then stream is sent to the user
-
If file doesn't exist, then external storage is requested for the data that is cached locally and sent as stream to the user
-
-