简体   繁体   English

将Android应用程序连接到AWS Elastic Beanstalk / RDS

[英]Connecting Android app to AWS Elastic Beanstalk/RDS

I am developing an android app and have successfully integrated AWS services such as cognito, cognito sync and dynamodb. 我正在开发一个Android应用程序,并且已经成功集成了AWS服务,例如cognito,cognito sync和dynamodb。 I need a relational database and looking to keep with AWS so i want to integrate RDS with my app. 我需要一个关系数据库并希望与AWS保持一致,因此我想将RDS与我的应用程序集成。 However, in terms of networking with android my only experience is connecting to a php/mysql server with Googles volley and so i am not sure how i should be even looking to connect and query to and from the AWS RDS. 但是,就与android联网而言,我唯一的经验是使用Googles volley连接到php / mysql服务器,因此我不确定我什至应该如何寻求与AWS RDS之间的连接和查询。 I have looked into Elastic Beanstalk but again am not sure if i have to use something like volley to connect to a java tomcat/python web server or use something else? 我已经研究过Elastic Beanstalk,但又不确定我是否必须使用诸如volley之类的东西来连接到Java tomcat / python Web服务器或使用其他东西?

How should i look at trying to get started? 我应该如何看待入门?

You should be able to connect to RDS like any other remote database you've worked with in the past. 您应该能够像过去使用过的任何其他远程数据库一样连接到RDS。

See http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_GettingStarted.html http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ConnectToInstance.html 请参阅http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_GettingStarted.html http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ConnectToInstance.html

If you are just looking to host a web service or have server side functions for your mobile App, you might want to consider AWS Lambda or API Gateway which are intended for exactly that. 如果您只是想为移动应用程序托管Web服务或具有服务器端功能,则可能需要考虑专门用于此目的的AWS Lambda或API网关。

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ConnectToInstance.html https://aws.amazon.com/lambda/ http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ConnectToInstance.html https://aws.amazon.com/lambda/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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