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
Post a Comment