Amazon Web Services:
Cloud Formation, Lambda,
Kinesis
Dmitriy Beseda
Binary Studio
2016
Cloud Formation
Cloud Formation - tool that allows to create
group of services and their interaction. It also
helps to provide predictable resources allocation
and updating.
It is free!
Cloud formation stack template
Lambda
● AWS Lambda is a compute service that lets you run code
without provisioning or managing servers.
● AWS Lambda executes your code only when needed and
scales automatically, from a few requests per day to
thousands per second.
● You pay only for the compute time you consume - there is
no charge when your code is not running.
First questions for lambda
● What type of code can I run as a Lambda function?
● How does AWS Lambda execute my code?
● How does AWS Lambda know the amount of memory and CPU requirements
needed to run my Lambda code?
Lambda languages support
● NodeJS
● C#
● Java
● Python
When you use Lambda you are responsible
only for your code.
When Lambda should be used
● Events
● Data changes
● Alarms
● Result of data analysis (Kinesis)
● Your own solutions
How Lambda launches code?
● When a Lambda function is invoked, AWS Lambda launches a container (that
is, an execution environment) based on the configuration settings you
provided.
● After a Lambda function is executed, AWS Lambda maintains the container for
some time in anticipation of another Lambda function invocation.
Lambda features
● You should specify
○ Max amount of memory
○ Maximum execution time
○ IAM role (execution role)
○ Handler name
● Any declarations in your Lambda function code remains initialized
● There is no AWS Lambda API for you to manage containers
● AWS Lambda is stateless
Lambda features
When you write your Lambda function code, do not assume that AWS Lambda
always reuses the container because AWS Lambda may choose not to reuse the
container. Depending on various other factors, AWS Lambda may simply create a
new container instead of reusing an existing container.
Kinesis
Kinesis allows to create apps for streaming
data analysis.
Kinesis features
● Ability to get and store TBs of data from hundreds of thousands sources in
hour
○ Web-site visiting statistic
○ Geo location
○ Social media data
○ Financial transactions

Amazon Web Services lection 5

  • 1.
    Amazon Web Services: CloudFormation, Lambda, Kinesis Dmitriy Beseda Binary Studio 2016
  • 2.
    Cloud Formation Cloud Formation- tool that allows to create group of services and their interaction. It also helps to provide predictable resources allocation and updating. It is free!
  • 3.
  • 4.
    Lambda ● AWS Lambdais a compute service that lets you run code without provisioning or managing servers. ● AWS Lambda executes your code only when needed and scales automatically, from a few requests per day to thousands per second. ● You pay only for the compute time you consume - there is no charge when your code is not running.
  • 5.
    First questions forlambda ● What type of code can I run as a Lambda function? ● How does AWS Lambda execute my code? ● How does AWS Lambda know the amount of memory and CPU requirements needed to run my Lambda code?
  • 6.
    Lambda languages support ●NodeJS ● C# ● Java ● Python When you use Lambda you are responsible only for your code.
  • 7.
    When Lambda shouldbe used ● Events ● Data changes ● Alarms ● Result of data analysis (Kinesis) ● Your own solutions
  • 8.
    How Lambda launchescode? ● When a Lambda function is invoked, AWS Lambda launches a container (that is, an execution environment) based on the configuration settings you provided. ● After a Lambda function is executed, AWS Lambda maintains the container for some time in anticipation of another Lambda function invocation.
  • 9.
    Lambda features ● Youshould specify ○ Max amount of memory ○ Maximum execution time ○ IAM role (execution role) ○ Handler name ● Any declarations in your Lambda function code remains initialized ● There is no AWS Lambda API for you to manage containers ● AWS Lambda is stateless
  • 10.
    Lambda features When youwrite your Lambda function code, do not assume that AWS Lambda always reuses the container because AWS Lambda may choose not to reuse the container. Depending on various other factors, AWS Lambda may simply create a new container instead of reusing an existing container.
  • 11.
    Kinesis Kinesis allows tocreate apps for streaming data analysis.
  • 12.
    Kinesis features ● Abilityto get and store TBs of data from hundreds of thousands sources in hour ○ Web-site visiting statistic ○ Geo location ○ Social media data ○ Financial transactions

Editor's Notes

  • #4 Templates: https://aws.amazon.com/ru/cloudformation/aws-cloudformation-templates/