Ideas for local access of Cloudinary content to application server?
Our company is in the process of transitioning from a legacy DAM system to Cloudinary. Although the majority of our content can be migrated seamlessly, we are encountering some challenges with a specific type of file that requires local accessibility, i.e., it needs to be mounted onto specific application servers.
These files, considered as
raw formats by Cloudinary, are essentially templates contained within a zip package with a custom extension. The application utilizing these files only recognizes paths presented as local paths, for instance:
We are trying to figure out the best method to synchronize these specific files within our Cloudinary environment. The goal is to have them automatically copied to a location that can be mounted to our application server upon uploading. These assets in Cloudinary are expected to have a range of structured metadata fields, enabling us to employ queries based on these fields to identify the appropriate file to be used as a template. Consequently, a file path would be derived from the corresponding Cloudinary URL.
However, it's important to note that not all content in our Cloudinary environment requires this process. We have numerous image formats that do not necessitate this treatment. We are only interested in synchronizing the file formats that serve as templates.
Currently, we're contemplating the following solutions:
- Whenever a file of this type is uploaded to Cloudinary, it could be simultaneously copied to an additional S3 bucket. This bucket could then be mounted to the application server, thereby emulating a local mount.
- Another possibility is to trigger an automated process that downloads the file to a local storage mount on the server whenever a file of this type is uploaded. This would ensure that the files are always synchronized.
In either case, the paths should ideally retain a similar structure with related folders and subfolders. Example:
If anyone has encountered a similar situation to this, or has any suggestions, your input would be appreciated. Thanks.