php - Image Upload Strategy with Clusters And Amazon S3 -


trying sort out strategy deal uploaded images endpoint amazon s3. goal is, upon upload, image visible. however, current way of handling situation end-user uploads image , has wait synced amazon s3 before being able view it. other option temporarily display item locally, since using cluster, doesn't work, because image only, upon upload, available view on cluster server uploaded to.

one possible solution rsync files amazon upon upload, reason, rsyncing within script wasn't seeming work. not possible within php script?

this how display images. let's image has been uploaded , stored record in shared storage (like db), saved image id , node specific url image temporary placed. hope can access each individual node in cluster.
when display image id, go db , pick node specific url, visible across cluster. when image has been uploaded s3, swap db url new 1 on s3 , delete image specific node.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -