Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Serverless Microservices

David Wells
June 09, 2017
320

Serverless Microservices

David Wells

June 09, 2017
Tweet

Transcript

  1. How did we get here 1. Build and maintain your

    own machines 2. Buy space in someone else's server farm 3. Run virtual machines in the cloud 4. Run containers in the cloud 5. Serverless Compute
  2. Serverless Auto-scaling focus on your core application logic not infrastructure

    Event Driven Architectures Never pay for idle Code runs as stateless functions Leverage third party services
  3. after free tier $0.20 per 1 million requests ($0.0000002 per

    request) First 1 million requests (400,000 GB-seconds) free per month
  4. • Nordstrom • Coca-Cola • Autodesk • Angie’s List •

    Vevo • Booz Allen Hamilton • NY Life Insurance • Australian Government • LendingTree • Amazon • Vice • Accenture • And more Enterprise Users Serverless State of the union re:Invent 2016 youtube.com/watch?v=AcGv3qUrRC4
  5. Your code runs in response to events - a POST

    request is sent to /createUser - a new item is added to the database - a scheduled cron triggers - a new image is added to an s3 bucket - an infrastructure event matching a rule is found - a SAAS webhook is fired - a link in an email is clicked - ... etc
  6. • DevOps/Infrastructure Automation • Auditing resources for security • Bots

    (Chat/Voice) • Alexa skills • IoT events • Infrastructure events • S3 - new files, updated files etc • DynamoDB - new items in DB • ... • Web + Mobile backend APIs • Form processing • Image processing • Web scraping / testing • Running binaries • Serving HTML / dynamic binaries • Webhook listeners • Cron jobs github.com/serverless/examples Use Cases
  7. • Amazon API Gateway • Amazon S3 • Amazon DynamoDB

    • Amazon Kinesis Streams • Amazon Simple Notification Service • Amazon Simple Email Service • Amazon Cognito bit.ly/infra-events • AWS CloudFormation • Amazon CloudWatch Logs • Amazon CloudWatch Events • AWS CodeCommit • Scheduled Events • AWS Config • Amazon Echo • Amazon Lex Infrastructure Events