Amazon Elastic Compute Cloud (EC2) vs. AWS Lambda

Overview
ProductRatingMost Used ByProduct SummaryStarting Price
Amazon Elastic Compute Cloud (EC2)
Score 8.9 out of 10
N/A
Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides secure, resizable compute capacity in the cloud. Users can launch instances with a variety of OSs, load them with custom application environments, manage network access permissions, and run images on multiple systems.
$0.01
per IP address with a running instance per hour on a pro rata basis
AWS Lambda
Score 8.5 out of 10
N/A
AWS Lambda is a serverless computing platform that lets users run code without provisioning or managing servers. With Lambda, users can run code for virtually any type of app or backend service—all with zero administration. It takes of requirements to run and scale code with high availability.
$NaN
Per 1 ms
Pricing
Amazon Elastic Compute Cloud (EC2)AWS Lambda
Editions & Modules
Data Transfer
$0.00 - $0.09
per GB
On-Demand
$0.0042 - $6.528
per Hour
EBS-Optimized Instances
$0.005
per IP address with a running instance per hour on a pro rata basis
Carrier IP Addresses
$0.005 - $0.10
T4g Instances
$0.04
per vCPU-Hour Linux, RHEL, & SLES
T2, T3 Instances
$0.05 ($0.096)
per vCPU-Hour Linux, RHEL, & SLES (Windows)
128 MB
$0.0000000021
Per 1 ms
1024 MB
$0.0000000167
Per 1 ms
10240 MB
$0.0000001667
Per 1 ms
Offerings
Pricing Offerings
Amazon Elastic Compute Cloud (EC2)AWS Lambda
Free Trial
NoNo
Free/Freemium Version
NoNo
Premium Consulting/Integration Services
NoNo
Entry-level Setup FeeNo setup feeNo setup fee
Additional Details
More Pricing Information
Community Pulse
Amazon Elastic Compute Cloud (EC2)AWS Lambda
Considered Both Products
Amazon Elastic Compute Cloud (EC2)
Chose Amazon Elastic Compute Cloud (EC2)
We were looking to another AWS structure which would help us to avoid a lot of low level data analysis. In fact it appears to us that if even though AWS Lambda allows a lot of really good integration with a data scientist module, our team in order to make sure we are in full …
Chose Amazon Elastic Compute Cloud (EC2)
We chose Amazon Elastic Compute Cloud (EC2) for our Splunk workloads so that we can take advantage of directly attached high speed storage, along with the other benefits of running on Amazon Elastic Compute Cloud (EC2) instances, such as load balancing, spot pricing and general …
Chose Amazon Elastic Compute Cloud (EC2)
Amazon's been leading the way in the past few years in cloud computing and have easily become a name we can trust. When we looked at options, nothing compared to EC2 when you looked at the scalability and flexibility of the product. For the needs we were trying to meet, these …
Chose Amazon Elastic Compute Cloud (EC2)
EC2 is a much more advantageous compared with the competitors because it has a much better console, configuration, auto-scalability, uptime, and many other features that are way better than other services I have seen so far. It also provides great backup services integrated …
Chose Amazon Elastic Compute Cloud (EC2)
I have used DigitalOcean and Google Compute Engine on a trial period. EC2 was the best choice for my team due to the level of features it offers plus the ability to integrate it quickly given that we were already using so many other AWS Microservices. Getting up and running …
Chose Amazon Elastic Compute Cloud (EC2)
Azure VM and Google Compute Engine are alternatives to EC2. AWS EC2 is most matures and advanced of the 3. All these provide easy-to-deploy and automatically configured third-party applications, including single virtual machine or multiple virtual machine solutions.
Chose Amazon Elastic Compute Cloud (EC2)
We chose EC2 over Azure because our tech stack was already invested in AWS. Documentation is better, and there is more community support for AWS services. EC2 is the pioneer in virtualization and we wanted to go with the stability of AWS. As far as pricing goes, EC2 can be …
Chose Amazon Elastic Compute Cloud (EC2)
AWS is by far the most mature platform, but others are catching up. We will be keeping a close eye on the competition and using them whenever they're a better fit for the workload than AWS.
Chose Amazon Elastic Compute Cloud (EC2)
It is better than other products in terms of their support team, documentation and initially, you can set up your services almost without paying anything. Apart from them, AWS services do have the best availability in any region in compared to other cloud products available …
Chose Amazon Elastic Compute Cloud (EC2)
If you want to scale your product very far, AWS is the tool to use – no doubt. It takes a lot longer to use than other products and is not trivial to use, but I have confidence my products can scale to meet the demands of millions of people with AWS. I do not have the same …
AWS Lambda
Chose AWS Lambda
It's fine, it works as the others would have, except EC2. We are migrating back to EC2 for dedicated compute because we have scaled to a point where we have consistent traffic. The tradeoff of maintaining infrastructure in-house outweighs the benefits of moving quickly through …
Chose AWS Lambda
We use AWS as our primary cloud provider due to the overall availability of services, AWS Lambda is just one of the services we use with AWS which allows a more seamless integration for our microservices. AWS Lambda gives us much more flexibility and can be invoked by more …
Chose AWS Lambda
AWS Lambda is much easier to use than the near alternatives. It is so straightforward and lightweight it is my primary service for handling small transactions or triggers. The other services require more setup time and are more complex to use. AWS Lambda takes your code snippet …
Chose AWS Lambda
When we use Lambda, we do not need to worry about the infrastructure and costs. AWS can handle it all on its own. For an optimum use case, one can always use AWS Lambda along with API Gateway and Route 53 for the best use case. Cloudwatch can help you identify any issues and …
Chose AWS Lambda
Each service has its purpose. With EC2 you can provision servers for customers and internal projects. With EBs you can optimize what you need in performance with what you can afford. With AWS Lambda you can integrate several of these tools to work together or acomplish …
Features
Amazon Elastic Compute Cloud (EC2)AWS Lambda
Infrastructure-as-a-Service (IaaS)
Comparison of Infrastructure-as-a-Service (IaaS) features of Product A and Product B
Amazon Elastic Compute Cloud (EC2)
8.8
27 Ratings
7% above category average
AWS Lambda
-
Ratings
Service-level Agreement (SLA) uptime9.625 Ratings00 Ratings
Dynamic scaling9.226 Ratings00 Ratings
Elastic load balancing9.625 Ratings00 Ratings
Pre-configured templates8.726 Ratings00 Ratings
Monitoring tools8.225 Ratings00 Ratings
Pre-defined machine images8.625 Ratings00 Ratings
Operating system support8.626 Ratings00 Ratings
Security controls8.726 Ratings00 Ratings
Automation8.416 Ratings00 Ratings
Access Control and Security
Comparison of Access Control and Security features of Product A and Product B
Amazon Elastic Compute Cloud (EC2)
-
Ratings
AWS Lambda
8.9
7 Ratings
1% above category average
Multiple Access Permission Levels (Create, Read, Delete)00 Ratings8.67 Ratings
Single Sign-On (SSO)00 Ratings9.23 Ratings
Reporting & Analytics
Comparison of Reporting & Analytics features of Product A and Product B
Amazon Elastic Compute Cloud (EC2)
-
Ratings
AWS Lambda
5.2
6 Ratings
14% below category average
Dashboards00 Ratings5.86 Ratings
Standard reports00 Ratings5.45 Ratings
Custom reports00 Ratings4.55 Ratings
Function as a Service (FaaS)
Comparison of Function as a Service (FaaS) features of Product A and Product B
Amazon Elastic Compute Cloud (EC2)
-
Ratings
AWS Lambda
8.6
7 Ratings
5% above category average
Programming Language Diversity00 Ratings9.07 Ratings
Runtime API Authoring00 Ratings8.17 Ratings
Function/Database Integration00 Ratings8.87 Ratings
DevOps Stack Integration00 Ratings8.47 Ratings
Best Alternatives
Amazon Elastic Compute Cloud (EC2)AWS Lambda
Small Businesses
DigitalOcean Droplets
DigitalOcean Droplets
Score 9.3 out of 10
IBM Cloud Functions
IBM Cloud Functions
Score 7.5 out of 10
Medium-sized Companies
SAP on IBM Cloud
SAP on IBM Cloud
Score 9.0 out of 10
Red Hat OpenShift
Red Hat OpenShift
Score 9.2 out of 10
Enterprises
SAP on IBM Cloud
SAP on IBM Cloud
Score 9.0 out of 10
Red Hat OpenShift
Red Hat OpenShift
Score 9.2 out of 10
All AlternativesView all alternativesView all alternatives
User Ratings
Amazon Elastic Compute Cloud (EC2)AWS Lambda
Likelihood to Recommend
8.9
(72 ratings)
8.0
(52 ratings)
Usability
9.3
(10 ratings)
8.3
(17 ratings)
Support Rating
8.5
(12 ratings)
8.7
(20 ratings)
User Testimonials
Amazon Elastic Compute Cloud (EC2)AWS Lambda
Likelihood to Recommend
Amazon AWS
Suitable for companies that are looking for performance at a competitive price, flexibility to switch instance type even with RI, flexibility to add-on IOPS, option to lower running cost with the regular introduction of new instance type that comes with higher performance but at a lower cost.
Read full review
Amazon AWS
Lambda excels at event-driven, short-lived tasks, such as processing files or building simple APIs. However, it's less ideal for long-running, computationally intensive, or applications that rely on carrying the state between jobs. Cold starts and constant load can easily balloon the costs.
Read full review
Pros
Amazon AWS
  • Huge Diverse range of machine shapes are available which cater to our demand.
  • Ability to combine the machines and integrate them with any other service in AWS (Ex: RDS, S3)
  • Handling performance and scalability using auto-scaling, ELB configuration and high performance machine shapes.
Read full review
Amazon AWS
  • No provisioning required - we don't have to pay anything upfront
  • Serverless deployment - it gets executed only when request comes and we pay only for the time the request is getting executed
  • Integrates well with AWS CloudWatch triggers so it is easy to setup scheduled tasks like cron jobs
Read full review
Cons
Amazon AWS
  • The choices on AMIs, instance types and additional configuration can be overwhelming for any non-DevOps person.
  • The pricing information should be more clear (than only providing the hourly cost) when launching the instance. AWS DynamoDB gives an estimated monthly cost when creating tables, and I would love to see similar cost estimation showing on EC2 instances individually, as not all developers gets access to the actual bills.
  • The term for reserving instances are at least 12 months. With instance types changing so fast and better instances coming out every other day, it's really hard to commit to an existing instance type for 1 or more years at a time.
Read full review
Amazon AWS
  • Developing test cases for Lambda functions can be difficult. For functions that require some sort of input it can be tough to develop the proper payload and event for a test.
  • For the uninitiated, deploying functions with Infrastructure as Code tools can be a challenging undertaking.
  • Logging the output of a function feels disjointed from running the function in the console. A tighter integration with operational logging would be appreciated, perhaps being able to view function logs from the Lambda console instead of having to navigate over to CloudWatch.
  • Sometimes its difficult to determine the correct permissions needed for Lambda execution from other AWS services.
Read full review
Usability
Amazon AWS
You an start using EC2 instances immediately, is so easy and intuitive to start using them, EC2 has wizard to create the EC2 instances in the web browser or if you are code savvy you can create them with simple line in the CLI or using an SDK. Once you are comfortable using EC2, you can even automate the process.
Read full review
Amazon AWS
I give it a seven is usability because it's AWS. Their UI's are always clunkier than the competition and their documentation is rather cumbersome. There's SO MUCH to dig through and it's a gamble if you actually end up finding the corresponding info if it will actually help. Like I said before, going to google with a specific problem is likely a better route because AWS is quite ubiquitous and chances are you're not the first to encounter the problem. That being said, using SAM (Serverless application model) and it's SAM Local environment makes running local instances of your Lambdas in dev environments painless and quite fun. Using Nodejs + Lambda + SAM Local + VS Code debugger = AWESOME.
Read full review
Support Rating
Amazon AWS
AWS's support is good overall. Not outstanding, but better than average. We have had very little reason to engage with AWS support but in our limited experience, the staff has been knowledgeable, timely and helpful. The only negative is actually initiating a service request can be a bit of a pain.
Read full review
Amazon AWS
Amazon consistently provides comprehensive and easy-to-parse documentation of all AWS features and services. Most development team members find what they need with a quick internet search of the AWS documentation available online. If you need advanced support, though, you might need to engage an AWS engineer, and that could be an unexpected (or unwelcome) expense.
Read full review
Alternatives Considered
Amazon AWS
Amazon EC2 is super flexible compared to the PaaS offerings like Heroku Platform and Google App Engine since with Amazon EC2, we have access to the terminal. In terms of pricing, it's basically just the same as Google Compute Engine. The deciding factor is Amazon EC2's native integration with other AWS services since they're all in the same cloud platform.
Read full review
Amazon AWS
AWS Lambda is good for short running functions, and ideally in response to events within AWS. Google App Engine is a more robust environment which can have complex code running for long periods of time, and across more than one instance of hardware. Google App Engine allows for both front-end and back-end infrastructure, while AWS Lambda is only for small back-end functions
Read full review
Return on Investment
Amazon AWS
  • It reduced the need for heavy on-premises instances. Also, it completely eliminates maintenance of the machine. Their SLA criteria are also matching business needs. Overall IAAS is the best option when information is not so crucial to post on the cloud.
  • It makes both horizontal and vertical scaling really easy. This keeps your infrastructure up and running even while you are increasing the capacity or facing more traffic. This leads to having better customer satisfaction.
  • If you do not choose your instance type suitable for your business, it may incur lots of extra costs.
Read full review
Amazon AWS
  • Positive - Only paying for when code is run, unlike virtual machines where you pay always regardless of processing power usage.
  • Positive - Scalability and accommodating larger amounts of demand is much cheaper. Instead of scaling up virtual machines and increasing the prices you pay for that, you are just increasing the number of times your lambda function is run.
  • Negative - Debugging/troubleshooting, and developing for lambda functions take a bit more time to get used to, and migrating code from virtual machines and normal processes to Lambda functions can take a bit of time.
Read full review
ScreenShots