0% found this document useful (0 votes)
2 views

AWS notes-78

AWS Lambda is a platform-as-a-service that supports limited programming languages and does not allow customization of the operating system or environment, while AWS EC2 is an infrastructure-as-a-service that provides full control over the operating system and software environment. Lambda functions are invoked to process events and rely on a runtime for execution, whereas EC2 requires users to set up their environment before deploying code. Key terms related to Lambda include functions, runtimes, events, triggers, downstream resources, and concurrency.

Uploaded by

coding727tree
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

AWS notes-78

AWS Lambda is a platform-as-a-service that supports limited programming languages and does not allow customization of the operating system or environment, while AWS EC2 is an infrastructure-as-a-service that provides full control over the operating system and software environment. Lambda functions are invoked to process events and rely on a runtime for execution, whereas EC2 requires users to set up their environment before deploying code. Key terms related to Lambda include functions, runtimes, events, triggers, downstream resources, and concurrency.

Uploaded by

coding727tree
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Difference between AWS Lambda and EC2:

AWS Lambda:

➢ AWS lambda is a platform-as-a-service.


➢ It supports only limited languages like Node.js, python, java, C#, Ruby, Go and
powershell.
➢ Write your code and push the code into AWS lambda.
➢ You cannot log into compute instances, choose customized O.S or language platform.

AWS EC2:

➢ AWS EC2 is an infrastructure—as-a-service.


➢ No environment restrictions, you can run any code or language.
➢ For the first time in EC2, you have to choose the O.S and install all the software required
and then push your code in EC2.
➢ You can select variety of O.S, instance types, network and security patches, RAM and
CPU etc.

Important Terms Used in Lambda:

a. Function: a function is a resource that you can invoke to run your code in AWS lambda.
A function has code that processes events and a runtime that passes request and
responses between lambda and the function code.

b. Runtime: lambda runtimes allows functions in different languages to run in the same
base execution environment. The runtime sits in between the lambda service and your
function code relying invocation events, context information and responses between the
two.

c. Event: it is a JSON formatted document that contains data for a function to process.

d. Event Source/ Trigger: an AWS service such as Amazon SNS or a custom service
that triggers your function and executes its logic.

e. Downstream Resource: an AWS service, such as Dynamo DB tables or S3 buckets


that your lambda function call once it is triggered.

f. Concurrency: number of request that your function is serving in any given time.

You might also like