简体   繁体   中英

how to use aws ec2 as back end to android app

I was using godaddy web hosting services where i used to put my php rest api. And use mysql database through it. also i used to store images and videos on file storage.

In AWS lot of things were there I'm not even understanding the proper way to start through it.

  • if i want Mysql database shall i go for EC2 or RDS. and how to start with this
  • if i want to put my rest api where i need to save that
  • if i want to store images and videos how to store it in ec2 or some other thing if I'm wrong.

Kindly give some detail answer and please don't link me again to the same official document page as if i understood their itself why i need to ask on stackoverflow.

  1. MySQL is available to RDS users, so you can do that. So from your back-end you can easily connect to that.
  2. Your back-end( rest api ) can be on EC2. From the code you can always connect to you RDS database just like any other database. you will get host , username and password for RDS.
  3. Use S3 bucket to save images/videos. You can then you simple S3 api to save and retrieve your images. Files are stored with a unique Id to S3 bucket which makes them easy to access.

Every thing from above is available in aws free tier account

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM