I created a spring boot application when users uploads images I just create the folder at the project level and add an image to it using Rest API.
At the local host create the folder and the image save successfully.
Now it's time to deploy on the AWS server. But when I need a backup of the project-level image folder. is it possible? and How?
Related
I'm new to AWS. I uploaded a laravel project to AWS using elastic beanstalk and users uploaded videos and I'm saving the videos inside the public folder. Now I did few updates and I want to upload a newer version of the laravel project. If I uploaded a new version. Does that replace the public folder on AWS with with one in the uploaded version? I don't want to lose the videos that the users uploaded. How can I do it?
Does that replace the public folder on AWS with with one in the uploaded version? I don't want to lose the videos that the users uploaded.
Yes it does, and you will probably loose data after update. If not, then you will loos data due to auto-scaling events (automated termination by AWS and creation of a replacement) on your EB instance.
Therefore, its not a good practice to keep your videos on the instance itself. Instead, they should be stored outside the instance. Usually, for this purpose, S3 or EFS services are used. This way, you store data outside of your EB environment, and you will not loose it due to updates or auto-scaling events.
I have already deployed my application to google app engine but I have modified just one file and I want to deploy just this file
Is not possible to upload a single file to app engine, every deploy takes the root folder where app.yaml file is located and upload the directories and files.
But if you made some changes or add a single file, the files that are identical are not re-uploaded.
Only the new files or modified are being uploaded, but the new upload creates a new version of the service.
as stated on the documentation:
"You can update your service at any time by running the gcloud app deploy command. Each time you deploy, a new version is created and traffic is automatically routed to the latest version"
If I have a Gear which contains Files and Images uploaded by Users, will the directory be Shared across all Gears? or will it be synced after every User upload?
If not, is there any workaround?
Can I manually sync all Gears after every user upload/delete/change in the upload directory?
The files that are uploaded by users into your $OPENSHIFT_DATA_DIR will not be synced in a scalable application. The resolution for this issue is to use a third party file hosting service such as Amazon S3.
I'm new to Amazon webservice. I created a instance in AWS EC2 to publish my website.Now I have an requirement.
I have resources where each resource must be able to choose the images(as profile picture)during runtime. I want to fetch the images from amazon storage and map in the already developed mvc.net application. I had this idea of storing the images in amazonS3(via budget) but I need to know how to fetch them during run time which enables resources to choose their profile picture from the uploaded images in bucket.
Please letme know if there is anyother way to store and fetch profile pictures using amazon to my mvcdotnet application?
Store the Original Image file in S3 Standard option.Store the reproducible images like thumbs etc in the S3 Reduced Redundancy option (RRS) to save costs. Store the Meta data about images including the S3 URL mapping in Amazon RDS and query them whenever needed from EC2.
I have an app in Heroku, I need simple file storage for uploaded images for this I
used send_data using attachment_fu plugin.
After that I have used the tmp/ directory to write this file and want to display on browser, But these files are not displayed in browser.
How can I display these images on browser?
What is the alternate solution to store and retrieve images?
Thanks!
You cannot store uploaded files on Heroku.
You must use an alternative strategy. A couple alternative strategies:
Store uploaded files in your database on Heroku. Because database systems are not specifically optimized for storing files, you should test out how well your application performs under load before you use this strategy.
Store uploaded files in an external storage service. Amazon S3 is a popular cloud storage service that anyone can use, and it has pay-as-you-go pricing just like Heroku. (In fact, Heroku itself runs on top of another of Amazon's cloud services, EC2.)