Compute in AWS Cloud
Compute forms the nucleus of creating and executing business.
AWS provides several compute products that allow to deploy, run, and scale applications as virtual servers, code, or containers.
Compute Covers
- Simple websites and applications on one or a few servers
- Control and manage cluster or server-level functions such as deployment and scaling
- Manage stateful or stateless applications packaged as Docker containers
- Stateless, event-initiated applications that require fast response times
AWS Compute Offerings
Different Compute services offered by AWS.
- Amazon EC2 - Virtual Servers in the Cloud
- Amazon EC2 Container Service - Run and Manage Docker Containers
- AWS Lambda - Run Code in Response to Events
- Amazon EC2 Container Registry - Store and Retrieve Docker Images
- Amazon LightSail - Launch and Manage Virtual Private Servers
- Amazon VPC - Isolated Cloud Resources
- AWS Batch - Run Batch Jobs at Any Scale
- AWS Elastic Beanstalk - Run and Manage Web Apps
- Auto Scaling - Automatic Elasticity
What is Amazon EC2?
Whatever kind of application you run; you're certainly going to need servers. Sometimes you might need larger ones and sometimes you might need smaller ones. Sometimes you might not need many and other times you might need tens or hundreds. Whatever your requirements, wouldn't it be great to be able to obtain servers quickly and inexpensively? Traditionally, obtaining servers could be quite time-consuming and typically something that could take weeks or even months.
You have to research into the right kind of hardware to buy, maybe get budget approval and then purchase the hardware, have it racked and stacked and eventually, get access to your servers. and once you've purchased the servers, you are stuck with them.
Amazon Elastic Compute Cloud or Amazon EC2 makes it easy for you to obtain virtual servers also known as compute instances in the cloud quickly and inexpensively. You simply choose the instance type you want, the template you would like to use which could be based on Windows or Linux and launch the quantity you need.
You can do this with a few clicks from the AWS Management Console or automate the process via an API using SDK in your choice of language within minutes your instances will be running and you will have access with full administrative control just like any other server and with Amazon EC2 you pay only for what you use.
When you're done using your instances you stop them and you stop paying for them. Amazon EC2 provides a range of instance types designed for different use cases. These range from small and economical instances that is a great choice for low volume applications up to cluster compute instances designed for high-performance computing workloads and could-based supercomputing on demand.
Amazon EC2 provides instances optimized for computing, memory, storage and GPU processing to enable you to find the right price and performance combination for whatever workloads you want to run. It's also really easy to resize your instances if your business or application requirements change. Amazon EC2 offers a choice of flexible pricing options. With on-demand pricing, you pay only for what you use.
When you stop your instances, you stop paying, there are no long-term commitments or upfront fees. Reserved instance pricing lets you obtain a significant discount over the on-demand price in return for a low one-time payment.
Spot instance pricing lets you name the price you want to pay for instances using market-based pricing and can allow you to obtain compute capacity at a significant discount to the on-demand price. We know that security is very important for your applications and Amazon EC2 provides several built-in security features. Your instances are located in a Virtual Private Cloud or VPC that is a logically isolated network that you control.
Amazon VPC provides you with several network security tools you can use to control who can access your instances?
You can also connect securely to your on-premises network with a hardware-based VPN device. Amazon EC2 instances provide you with various amounts of directly attached temporary storage depending on the instance type and you can also use Amazon Elastic Block Store or EBS to provide persistent block storage for your Amazon EC2 instances.
Amazon EBS also offers you the ability to provision storage with a specific level of performance to meet the needs of your application. It can be difficult to predict the demand that your applications might experience and Amazon EC2 provides auto-scaling to help ensure that the demands of your application are met.
Auto-scaling lets you define metrics to increase or decrease the number of instances that you are running. You can choose standard metrics, such as network bandwidth or CPU utilization or a custom metric that you define. This helps you ensure that you can meet your application's demands without manual intervention and pay only for what you need.
You can sign up for an AWS account today and get started with Amazon EC2 in minutes and with the AWS Free Tier, you can try cloud computing for free.
Amazon Elastic Compute Cloud (EC2)
Amazon EC2 offers resizable cloud-based compute capability taking shape as virtual servers. There is a broad range of instance types that are easily manageable and exhibit different combinations of networking capacity, storage size, amount of memory, and CPU power.
Features
- Removes the necessity of upfront investment in computer hardware.
- Commission numerous instances simultaneously
- Pay only for the used quantity
- Change web-scale cloud computing easy
Applications
- Big data - e.g. Hadoop
- Database software - e.g. Aurora, DynamoDB
- Enterprise applications - e.g. SAP, Oracle
- Migrations from on-premises environments
- Open-source cluster management
Amazon EC2 Container Service (ECS)
Amazon ECS is a scalable, performance container management service to include Docker containers. It enables you to run applications at ease on a managed cluster of Amazon EC2 instances.
Amazon ECS removes the necessity to install, run, and scale cluster management infrastructure.
Applications
- Web applications
- Microservices
- Batch jobs
- Docker workloads
How does Amazon ECS work?
Containers deliver speed and agility for your business but can require a lot of heavy lifting running complex container orchestration software managing and upgrading the orchestration systems having disjointed processes for hybrid environments not to mention managing cost and security concerns your time and your developers time is better spent focusing on projects to help grow your business.
This is how amazon elastic container service can help amazon ECS is fully automated with no control plane to manage and with ECS anywhere customers can work with containers in both cloud and on-premises environments.
Combining ECS on Fargate customers don't have to manage hosts no patching upgrading or maintenance overhead EC2 delivers security cost control and simplicity while removing the burden from your teams end to end innovate faster reduce overhead and spend more time deploying projects critical to your business growth build pipelines with agility and speed for networking storage and automated scheduling that scale automatically ECS seamlessly integrates with other AWS services if you know AWS you know ECS and teams can also run containers on computing services such as ec2 using the ECS fully managed control plane.
Best of all there is no additional charge for Amazon ECS you only pay for the AWS resources you need to store and run your application get started with ECS today.
AWS Lambda
AWS Lambda aims to run code without managing or provisioning servers.
- Lambda is the nucleus of serverless computing. To build and run services and applications without bothering about servers.
- Run code for virtually any type of backend service or application - with no administration.
- Upload the code and Lambda handles everything needed to run and scale the code with better availability.
- Pay only for the compute time that you use.
- Create code to automatically trigger from other AWS services, otherwise, call it directly from a mobile or web app.
Applications
- Web applications
- Mobile backends
- IoT backends
- Stream processing workloads
- File processing workloads
How does AWS Lambda work?
When you're building applications you want them to deliver a great experience for your users maybe you want your application to generate in-app purchase options during a gaming session rapidly validate street address updates or make image thumbnails available instantly after a user uploads photos to make this magic happen your application needs back-end code that runs in response to events like image uploads in-app activity website clicks or sensor outputs but managing the infrastructure to host and execute back-end code requires you to size provision and scale a bunch of servers manage operating system updates apply security patches and then monitor all this infrastructure for performance and availability wouldn't it be nice if you could just focus on building great applications without having to spend lots of time managing servers.
Introducing AWS Lambda AWS Lambda is a compute service that runs your backend code in response to events such as object uploads to Amazon s3 buckets updates to Amazon DynamoDB tables data and Amazon Kinesis dreams or in-app activity once you upload your code to lambda the service handles all the capacity scaling patching and administration of the infrastructure to run your code and provides visibility into performance by publishing real-time metrics and logs to Amazon Cloud Watch all you need to do is write the code.
AWS lambda is very low cost and does not require any upfront investment when you use AWS lambda you're simply charged a low fee per request and for the time your code runs measured in increments of 100 milliseconds getting started with AWS lambda is easy there are no new languages tools or frameworks to learn you can use any third-party library even native ones the code you run on AWS Lambda is called a lambda function you just upload your code as a zip file or design it in the integrated development environment in the AWS management console or you can select from a list of function samples pre-built for common use cases image conversion file compression and change notifications and built-in support for the AWS SDK makes it easy to call other AWS services once your function is loaded you select the event source to monitor such as an Amazon s3 bucket or Amazon DynamoDB table and within a few seconds lambda will be ready to trigger your function automatically
When an event occurs with lambda any event can trigger your function making it easy to build applications that respond quickly to new information to learn more about AWS lambda visit our website and you can get your first Lambda function up and running with a few clicks in the AWS management console and with the AWS free tier, you can try lambda for free.






