I am working on Xamarin Mobile App for which we are using SQL 2012 as Server Database. DB is already hosted in Amazon RDS. However, I am not clear on creating WebApi for the database.
How to establish WebAPI for Amazon RDS SQL Database?
I DO suggestion to create an API as this can serve as the interface between your database and your Xamarin Mobile App.
You could use AWS Elastic Beanstalk for the hosting. This guide shows you wow to work with .Net and RDS and later be able to deploy it on Amazon.
Related
Can anyone point me in the direction of some demo code/app that I can use for a demo.
The app should have the ability to connect to a relational database and ideally be able to demonstrate the persistence of having the DB.
I.e. You can save values into the DB from the web app
I'm planning to deploy this onto AWS ECS for testing, alongside RDS.
Thanks in advance
Here is an AWS tutorial that shows how to write a Java Spring Boot Web app that is deployed to Elastic Beanstalk ( Elastic Beanstalk is an AWS service that leverages Amazon EC2 and S3 and deploys, manages and scales your web applications for you. It uses managed containers that support Node. js, Java, Ruby, Docker and more) and uses RDS to store and update data.
Creating the Amazon Relational Database Service item tracker
So most of what you are looking for is there - including how to setup the RDS instance and interact with it from a web app deployed to the cloud. If you follow this step by step (there is a lot of Java code) -- you will get this Sample Web App running on the cloud and it will teach you how to interact with RDS from a web app.
Also - this covers invoking additional services such as Simple Email Service from the web app.
I want to deploy my django with MySQL db for production on aws ec2. Files and db are present on the server.
follow the official docs http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html, start directly at "Configure Your Django Application for Elastic Beanstalk", since you have already developed your app
I have developed a Dynamic web App, which leverages Amazon RDS. Servlet talks with RDS fetches data and presents it using JSP. The process is working fine. Next, I uploaded the war file of project on AWS Elastic beanstalk. But Database connections are not working.
Could you please guide me here? Why my connection variables are not working after deploying?
I made few changes to the early deployment and now App takes forever to load.
I have an Azure VM that runs Ubuntu and has a Django app of mine along with its postgresql database installed on it.
Moreover, I also have an Azure Web App that was created with Django, which I then connected to github, and pulled the source code for the same app I have on the aforementioned Azure VM.
I now want the settings.py in this Django Azure Web App to point to the database residing in the Azure VM.
Normally, the way to do this is to list the database url in the app's settings.py. My question is: what would be the database url for my postgresql database installed in the Azure VM, if one was to try and access it from an Azure Web App (i.e. external to the Azure VM)? Would it be: postgres://AzureVM'sFQDN:5432/nameofdatabase?
Provided you have opened port 5432 on the VM, that would be the right string to connect to your database from anywhere. Have you tried to connect your development machine to this database?
If you have created your set-up with the new resource manager deployment model of azure, you should also be able to create both the web-app and the database VM within the same virtual network. This way, you can provide access to the database only for the Web App, and not for the entire internet.
I had been working on amazon web services from couple of days and it is giving me a hard time. All the want it to deploy my J2ee web application on Amazon web Services. I had used the following approach:
1) In had installed the AWS toolkit on eclipse.
2) I had deployed the sample web application of the amazon web services but it is without database. It's a static web page.
But i want to deploy my j2ee web application on aws with apache tomcat 7 as server and mysql database server. Can any one explain me how to deploy the j2ee web app on the aws? I would be highly thankful to you.
I would suggest you try AWS Elastic Beanstalk
If you use tomcat with your Java EE application, it become easier because it already have some templates for that. Creating and Deploying Elastic Beanstalk Applications in Java Using AWS Toolkit for Eclipse
As for mysql, AWS also has the RDS which can do it perfectly. Just modify your database.config in your Java EE application according to this.
Hope it will help.