Does anybody have experience implementing GWT applications to EC2?

Basically were to set up tomcat or apache on the ec2 instance, could I've customers connect straight to a url pointing there?

Would that be economical, or would java hosting services be best?

Can there be any disadvantage to hosting the advantage HTTP server on the regular hosting service and also have that direct demands to EC2? Performance ever an problem here?

Yes, you are able to host virtually anything you want, while you effectively possess a devoted Linux machine at the command.

When I last recall, the fundamental rate to have an EC2 instance, on the "low finish box" exercised close to $75/month, to help you use that like a benchmark against other suppliers. Which assumed the machine expires 24x7 (because you pay for this on an hourly basis).

The main problem with an EC2 instance is merely that it may "disappearInch anytime, so when it will, any data written for your instance will "disappearInch too.

Which means you'll need to put it together to ensure that you are able to readily restart the server, but additionally you have to offline any data that you simply generate and also keep (with the idea to among Amazons other services, like S3, in order to another exterior service). Which will incur additional costs based on volume.

Finally, additionally, you will be charged for just about any visitors to the service.

The one thing to check it against is yet another "Virtual Server" from another vendor. There's lots of interesting things that you can do with EC2, but this could be simpler to choose a devoted Virtual hosting service if you are simply using just one machine.

Other solutions are correct however i wanted to talk about the truth that we're are creating a product that's 100% EC2/S3 based and possess a pure GWT front-end.

We use maven2 for develops and also the excellent gwt-maven wordpress plugin. This causes it to be easy to make a WAR package in our web application as output. We use Jetty but Tomcat works equally well.

We now have pound (a http accelerator/load balancer) running about the VM listening for http &lifier https, which in turn forwards to demands to lighttpd (static) or jetty (application). This simplifies SSL certificates because pound handles SSL. I have found Java servers will always be a discomfort to configure with SSL certs.

Others have given good solutions. I would need to add you need to spend programmer time dealing with know EC2's eccentricities and addressing them (e.g. with EBS). It isn't completely trivial, despite the fact that it's helpful understanding to possess and might be worthwhile for your reason alone, if you wish to get ready to go rapidly with only a couple of servers, you need to most likely take a look at other located options.

However, if you are planning to scale up massively enough (eventually hosting many servers on EC2) i quickly would recommend it. You need to architect a couple of things, but you must do that anyways. The versatility of on-demand computing, and also the generally low cost, makes mtss is a killer platform when you achieve a particular scale of operation.

You certainly can host an http server in EC2, however, you need to consider the next:

  • As pointed out prior to the cost could be much greater than alternative hosting solutions
  • Your instance (the equipment you've began in EC2) will go off suddenly. There's no guarantee from Amazon . com for 24x7 availability. This suggest the data you've saved in local storage is going to be lost so when you've begin a new instance, it will receive a new IP.

To effectively host a server in EC2, you thus have to employ another services from Amazon . com. You'll need Elastic IP, to ensure that you are able to circumvent the brand new Ip problem. You may also use Elastic Block Storage. This can be a service that will help you to mount inside your machine a disk, that won't disappear whenever your instance is lost.