Is there any good solution or existing extension for an Yii AssetManager which stores the files on a CDN storage like S3?
Our main problem is, that we have multiple webservers scaled horizontally, managed by K8s. Therefore Assets should be uploaded once and served as CDN url afterwards. It would be nice to have a solution on the build process of the application, but i think this won’t work due to the fact we don’t know all the assets which are used. Therefore i would develop an AssetManager which uploads the files to a CDN, stores this information in the cache (file x is uploaded) and just serve the URL in future.
I could not find any good extension or any good class which extends the AssetManager. The AssetManager does not have an interface which lets me know how to create my own AssetManager (https://www.yiiframework.com/doc/api/2.0/yii-web-assetmanager).
Any help or tipp regarding my AssetManager problem would be nice. If i can manage to get my task done, i will publish the library as oss of course.