Nic Acton
  • My Gitbook
  • My Favorite Things
    • Podcasts
    • Newsletters
  • Monthly Summaries
    • May 2019
    • June 2019
  • Cloud Computing
    • Cloud Concepts
    • AWS
      • Certified Solutions Architect
      • Well Architected Framework
        • Operational Excellence
        • Reliability
        • Performance Efficiency
        • Cost Optimization
        • Security
      • Analytics
        • Elasticsearch Service
        • Kinesis
        • Elastic MapReduce (EMR)
      • Compute Services
        • Elastic Beanstalk
        • Elastic Container Service (ECS)
      • Deployment
        • CloudFormation
      • Application Services
        • Key Management Service (KMS)
        • Simple Queue Service (SQS)
        • API Gateway
        • Simple Work Flow (SWF)
        • Amazon MQ
        • Simple Notification Service (SNS)
      • Simple Storage Service (S3)
        • Macie
      • Databases
        • RDS
        • DynamoDB
        • ElastiCache
        • Neptune
        • Redshift
      • Cloudfront
      • IAM
      • Monitoring
        • Trusted Advisor
        • Amazon Inspector
        • AWS Config
        • AWS Shield
        • CloudWatch
          • VPC Flow Logs
        • CloudTrail
        • Guard Duty
      • Route53
      • Serverless Architectures
        • Lambda
      • VPC
        • Highly Available & Fault Tolerant VPCs
        • Hybrid Environments
          • VPC Peering
          • Direct Connect
        • Cloud HSM
    • GCP
    • Azure
    • HashiCorp
    • Red Hat
      • RHEL
        • Basics
        • Grep & Regex
        • SSH
      • Ansible
    • Tutorials/Guides
      • Linux
        • Admin
  • Software Engineering
    • Machine Learning
      • Deep Learning
        • Tensorflow
      • Training and Loss
    • Programming
      • APIs
    • Security
    • Web Development
      • OSI 7 Layer Model
    • Tutorials/Guides
      • Apache Server
    • Virtualization
      • Virtual Machines
      • Containers
      • Serverless
  • Fitness
    • Nutrition
      • Diets
      • Macronutrients
      • Supplements
      • Miscellaneous
    • Strength Training
    • BodyBuilding
  • Miscellaneous
    • Technology Ethics
      • Education
    • Interesting Concepts
      • Libertarian Paternalism
Powered by GitBook
On this page
  • Essentials
  • Lambda vs. EC2
  • Pricing & Costs
  • Implementation

Was this helpful?

  1. Cloud Computing
  2. AWS
  3. Serverless Architectures

Lambda

Fully-managed Function-as-a-Service!

Essentials

  • "Serverless" computing platform

    • There are servers, but we don't see them or concern ourselves with them.

  • Serverless means that you run code without provisioning or managing servers.

    • So if you want to run code, you don't have to spin up an EC2 instance and install software, you can just create a "Lambda function", drop code in, and execute it

  • Lambda allows you to configure the amount of resources (memory, CPU) available to your function

  • You pay only for the compute time necessary (to the millisecond)

  • By default, it is highly available, fault-tolerant, scalable, elastic, and cost efficient

  • Lambda integrates well with many other AWS services

  • Current support languages supported:

    • Node.js

    • Java

    • C#

    • Python

    • Go

    • Ruby (New)

    • Custom Runtimes!!! (Bash on the end, but now pretty much any language you want!)

Lambda vs. EC2

  • Generally you want to use Lambda when you want to run code that is in response to events such as:

    • Changes to S3 buckets

    • Updates to an Amazon DynamoDB table

    • Custom events generated by your application or devices

    • Kinesis Streams

Pricing & Costs

  • First 1M requests/month - FREE!

    • $0.20 per 1M requests/month after

  • First 400kkk GB-sec/month- FREE!

    • $16.67 per 1M GB-sec/month after

Implementation

  • Lambda includes handler functions built into samples in which you define the event, context and callback.

PreviousServerless ArchitecturesNextVPC

Last updated 6 years ago

Was this helpful?