Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS - What are the exact differences between EC2, Beanstalk and LightSail?

What are the exact differences between EC2, Beanstalk and LightSail in AWS?

What are good real time scenarios in which I should use these services?

like image 789
Aar Man Avatar asked Mar 04 '19 10:03

Aar Man


People also ask

What is difference between Lightsail and EC2?

Amazon EC2 is a mix of multiple services and has its own individual features used to create a single architecture. Amazon EC2 instances are meant for small to complex architecture. Lightsail, on other hand, is an integrated product of services offered by AWS. Lightsail is better for small to medium scale workloads.

What is the difference between EC2 and Beanstalk?

EC2 is Amazon's service that allows you to create a server (AWS calls these instances) in the AWS cloud. You pay by the hour and only what you use. You can do whatever you want with this instance as well as launch n number of instances. Elastic Beanstalk is one layer of abstraction away from the EC2 layer.

Is EC2 faster than Lightsail?

Lightsail managed databases don't provide the same level of performance or throughput that larger databases, such as MongoDB or Cassandra, might require. EC2 instances with provisioned IOPS SSD storage are a better option than Lightsail in these cases.

Is Lightsail part of EC2?

Testing¹ reveals that Lightsail instances in fact are EC2 instances, from the t2 class of burstable instances. EC2, of course, has many more instance families and classes other than the t2, almost all of which are more "powerful" (or better equipped for certain tasks) than these, but also much more expensive.


Video Answer


4 Answers

They are all based on EC2, the compute service from AWS allowing you to create EC2 instances (virtual machines in the cloud).

Lightsail is packaged in a similar way than Virtual Private Server, making it easy for anyone to start with their own server. It has a simplified management console and many options are tuned with default values that maximize availability and security.

Elastic Beanstalk is a service for application developers that provisions an EC2 instance and a load balancer automatically. It creates the EC2 instance, it installs an execution environment on these machines and will deploy your application for you (Elastic Beanstalk support Java, Node, Python, Docker and many others)

Behind the scenes, Elastic Beanstalk creates regular EC2 instances that you will see in your AWS Console.

And EC2 is the bare service that allows the other to be possible. If you choose to create an EC2 instance, you will have to choose your operating system, manage your ssh key, install your application runtime and configure security settings by yourself. You have full control of that virtual machine.

like image 165
Sébastien Stormacq Avatar answered Oct 16 '22 15:10

Sébastien Stormacq


In simple terms:

EC2 - virtual host or an image. which you can use it to install apps and have a machine to do whatever you like.

Lightsail - is similar but more user friendly management option and good for small applications.

Beanstalk - an orchestration tool, which does all the work to create an EC2, install application, software and give you freedom from manual tasks in creating an environment.

More details at - https://stackshare.io/stackups/amazon-ec2-vs-amazon-lightsail-vs-aws-elastic-beanstalk

like image 24
Krunal Barot Avatar answered Oct 16 '22 14:10

Krunal Barot


I don't know if my scenario is typical in any way, but here are the differences that were critical for me. I'm happier EC2 than EB:

EC2:

  • just a remote linux machine with shell (command line) access
  • tracable application-level errors, easy to see what is wrong with your application
  • you can use AWS web console panel or AWS command line tool to manage
  • you will need repeated steps if you want to reproduce same environment
  • some effort to get proper shell access (eg fix security rule to your IP only)
  • no load balancer provided by default

Elastic Beanstalk

  • a service that creates a EC2 instance with a programming language of your choice (eg Python, PHP, etc)
  • runs one application on that machine (for python - application.py)
  • upload applications as .zip file, extra effort needed to use your git source
  • need to get used to environment vs applications mental model
  • application level errors hidden deep in the server logs, logs downloaded in separate menu
  • can be managed by web console, but also needs another CLI tool in addition to AWS CLI (you end up installing two CLI tools)
  • provides load balancer and other server-level services, takes away the manual setup part
  • great for scaling stable appications, not so much for trial-and-see experimentaion
  • probably more expensive than just an EC2 instance
like image 8
Evgeny Avatar answered Oct 16 '22 14:10

Evgeny


Amazon EC2 is a virtual host, in other words, it is a server where you can SSH configure your application, install dependencies and so on, like in your local machine. EC2 has a dozen of AMI (Amazon Machine Image: it is some kind of operating system of your EC2 server, for instance, you can have EC2 running on Linux based OS or in windows OS). To summarize, it is a great idea if you need a machine in your hands.

Amazon Lightsail is a simple tool that you can deploy and manage application with small management of servers. You can find it very practical if your application is small, For instance, it will perfectly fit your application if you use Wordpress or other CMS.

AWS Elastic Beanstalk is an orchestration tool. You can manage your application within that service, it is more elevated then AWS Light Sail.

If you still do not understand the differences, you can take a look at each service overview.

There is also an answer in Quora

like image 5
Gor Kotikyan Avatar answered Oct 16 '22 14:10

Gor Kotikyan