skip to Main Content

i am developing an android application which needs to connect with an online MySQL database. I have created an amazon aws account and set up an RDS MySQL database but i don’t know how to send http requests from android app to database.

I think i need to create some web services in order to send http requests but is that possible when using amazon’s rds service?

Thank you all for your answers.

2

Answers


  1. From a security perspective, it is not advisable to connect mobile apps directly to a database.

    Mobile apps should connect to your application back-end that would perform authentication and determine what data the mobile user is entitled to access. The back-end can then retrieve the appropriate information from the database and return appropriate data to the app.

    This also separates your application logic from the storage layer, allowing you to change information that is sent to/from the mobile apps without having to modify the code in every copy of the mobile app. You could also swap-out the database without having to change the mobile app.

    Login or Signup to reply.
  2. it’s probably not the best design to have clients connecting to your database remotely. The best thing to do would be to put a REST API on AWS that interacts with your database.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search