We are in the process of migrating our application from Refile to Shrine and we were wondering about the usefulness and possibility of running the uploader derivation endpoint into a dedicated app.
Refile is providing a Rack application written with Sinatra (See the Refile README, 3. Rack Application) for that exact purpose and it is what we have been running for many years with success. We are still using a CDN to cache all the attachments processed on the fly by the dedicated app but as the medium response time (~550ms) and memory usage of this app aren’t great it sounds like a good idea to keep it separated from our main app.
I looked for such a setup on the Shrine website (which is great btw) but wasn’t able to find something about it. Is it something recommended? Any chance that the response time and memory usage of the Shrine uploader derivation endpoint would be better than the Refile one? I suppose it mostly comes down to the mini_magick asset processing so I expect them to be in the same ballpark.
Do you think we would just be fine processing all our files on the fly inside our main app?