Java EE applications and MySQL – what cloud services do I use?

I have developed a fairly small application with Java EE, hibernate, MySQL and Tomcat Now I want to host it in the cloud service I considered three options:

>Amazon EC2 (how does PAAS manage MySQL here?) > Windows azure (I actually deployed a good world Java application, so it works, but what about MySQL?) > Google App Engine (no clue)

I assume a maximum of 5 concurrent users and very few data sets (< 10.000) Editor: I don't need CPU power I don't know what services to use in terms of Technology (especially MySQL) and cost (no more than 20 $/ 15 euros per month)

Someone with experience can recommend an option I also want to know the reason behind this thank you

Solution

Amazon has a free tier http://aws.amazon.com/free/

Check it out

You will probably start two mini instances, one for the application, Tomcat, and the other for MySQL You are about to run the MySQL database on the EBS volume Perhaps the application depends on its role Then create two security groups, an application for the web port (80443, etc.) open to the world (SSH may also be open to your IP, or if you are crazy), and a security group server port 3306 of MySQL is open to the application security group see http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/using-network-security.html.

Then I will create an elastic IP and put it on the network server. I use route53 as my DNS because it is easy. Then you can use the elastic IP as the record of your site / application

Observe the monitor. If you get more load, take each server snapshot as an AMI and start a new server larger than the micro device If you use EBS supported AMI, it will help this

Note: T1 Micros is not very good. If it's difficult to steal all Amazon CPUs, you'd better only use them if you won't receive too much burden

There are obviously other costs, such as storage and data transmission, but they are usually cheap

If you think these servers will run for a year or more, you can also reserve these servers to reduce all costs outside the free level

I would recommend AWS Once you are dirty, it will allow you to easily extend the application

AWS has a variety of services to help you manage and expand your applications I've always been happy

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>