0

I am sure this question has been asked and answered before multiple times. But unfortunately, I am still not clear. Here is my issue.

I have a JSP, Servlet application which uses MySQL as the database. I have built the WAR file as well. Now I am in need of deploying this so it can be accessed online by anyone.

I looked into lot of areas including normal web hosting. However even though the services like DailyReazor are highly secured, they provide little for MySQL, around 250 MB for the package I selected.

Now I am looking into Amazon AWS. In AWS I am expecting to deploy my aplication and make it available online.The MySQL server should not contain limits like 250MB.

But I have never ever used this service AWS before. By reading various posts, I know that Elastic Beanstalk is the easiest way to go, but still not convinced about how to deploy it properly with database access and all. And in the other hand, will they give me a web address like "www.example.com" or will they simply provide an IP address?? I am also familiar with tomcat so I need to use it.

We will not upload files (images etc) at the moment, so I believe we can manage with around 20$ per month?

I really appreciate if someone can provide a clear guidance on deploying java web applications in Amazon, with the requirements I mentioned about MySQL, Global access and so on.

1 Answer 1

2

Amazon RDS for MySQL is a Database-as-a-service offerring from AWS. It is scaleable up to 3TB, and has scaleable IO as well. Of course it also depends on how much you prepared to pay. they manage the DB for you (backup etc). You get a URL to connect, credentials and you are set to go.

Amazon Elastic Beanstalk uses Tomcat. So you should be familiar with that. You upload your WAR file and specify what EC2 flavor you want (CPU/MEM etc). They launch a VM that is configured with Jva and Tomcat and deploy the WAR for you. You get an IP address.

Amazon Route 53 is the DNS service, where you can assign the IP address to your domain (assuming you have one)

Sign up to request clarification or add additional context in comments.

12 Comments

I am in the process of calculating the price at the moment. Here is the link - calculator.s3.amazonaws.com/index.html. When I calculate the price, it gives me heavy stuff like $100 ! Maybe I added invalid data....
You get an IP address - I need a web URL.
That is what the DNS service is for. Do you have a domain?
Regarding pricing, you sohuld start with the smallest EC2 size (xs) I think it falls into the free tier they offer. If you want just one machine and knows your way around Linux, you can opt to use EC2 alone (without beanstalk) and that could lower the price
instead of Amazon RDS, you could, of course, install MySQL on your own. It does require technical skill, like basic know how of Linux, and reading through the MySQL installation and configuration docs
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.