Module3 1
Module3 1
Computing
Module 3: AWS Database Services
• AWS Lambda
• Amazon Dynamo DB, Amazon ECS (Elastic Container
Service)
• Amazon S3 Glacier, Amazon Kinesis,
• Amazon Redshift, Amazon EMR (Elastic MapReduce),
• AWS Disaster Recovery and Backup.
AWS Lambda
• AWS Lambda a serverless compute service.
• This service lets you run code without needing to think about servers.
• It lets you focus on what's most important, such as making a great
application.
• You only pay for the compute time that you use.
What Are Lambdas Functions?
• AWS lambda are server-less compute functions are fully managed by the
AWS where developers can run there code without worrying about
servers.
• AWS lambda functions will allow you to run the code with out
provisioning or managing servers.
• Once you upload the source code file into AWS lambda in the form of
ZIP file then AWS lambda will automatically run the code without you
provision the servers and also it will automatically scaling your functions
up or down based on demand.
• AWS lambda are mostly used for the event-driven application for the
data processing Amazon S3 buckets, or responding to HTTP requests.
How AWS Lambda Works
1.Deploy your code to Lambda
2.Make the code ready to trigger an event- Eg, S3 or EC2
3.The code only runs when triggered- such as HTTP requests from the
Amazon API gateway, table updates in Amazon DynamoDB, and state
transitions.
4.Pay only when your code is running
Use Cases Of AWS (Amazon Web
Services) Lambda Functions
1.File Processing: AWS lambda can be triggered by using simple
storage services (S3). Whenever files are added to the S3 service Lambda data
processing will be triggered.
2.Web Applications: You can combine both web applications and AWS lambda
which will scale up and down automatically based on the incoming traffic.
3.IoT (Internet of Things) applications: You can trigger the AWS lambda based on
certain conditions while processing the data from the device which are connected
to the IOT applications. It will analyze the data which are received from the IOT
application.
4.Stream Processing: Lambda functions can be integrated with the Amazon kinesis
to process real-time streaming data for application tracking, log filtering, and so on.
Features Of AWS (Amazon Web
Services) Lambda Functions
• AutoScaling and High Availability: - High availability can be
achieved by scaling the application.
• Serverless Execution: - There is no need for provisioning the servers
manually in AWS.
• Pay-per-use-pricing: - AWS will charge you only for the time that
time compute engine was active.
• Supports different programming languages: Python, Java, C+,
Node js etc
• Integrates with other AWS Services: S3, EC2, SQS, SNS, RDS
Pricing
Advantages
• Cost Efficiency: It only charges for the compute that is only for
running known as pay-as-you-go model.
• Automatic Scaling: AWS Lambda automatically helps in scaling your
applications by running code in response to each trigger.
• Reduced Operational Compliance: It allows the developers to focus
on building your logic, the aws itself while take care of the
infrastructure.
• Integration with AWS Services: It provides a seamlessly integration
with other AWS services
Disadvantages of AWS (Amazon Web Services)
Lambda Function
1.Latency while starting: While aws lambda is going to be activated after a long gap it
will take some time to initialize the service which is required to deploy the application
at that time end users will face latency issues.
2.Limited control of infrastructure: Behalf of your lambda function is going to take of
underlying infrastructure so you will have very limited control over undelaying
infrastructure.
3.Time Limit: AWS Lambda enforces a maximum execution time limit for functions,
which is currently set to 900 seconds (15 minutes). If your function exceeds this time
limit, it will be forcibly terminated.
4.Vendor Lock-In: If you want to execute the lambda function then you need the support
of any cloud provider as here we are using AWS because it is widely used in the market.
5.Limited Computing and Memory Options: Limited configuration is there on the
memory and CPU configuration. The predefined memory configuration was 120 MB to
120 GB and memory configuration determines the corresponding CPU power.