Going serverless–
NoOps is the best ops

Going serverless–
NoOps is the best ops

An overview of building a fully AWS-managed massively-scalable dynamic web serving architecture without deploying a single instance. A quick deep-dive into building your infrastructure using AWS managed services only.

D02b5e0b9a348fa8d9bd2cac025eead3?s=128

Steven Ringo

March 02, 2016
Tweet

Transcript

  1. Going serverless –
 NoOps is the best ops Steven Ringo

    AWS Meetup Sydney 2 March 2016
  2. No Servers? Wut?

  3. None
  4. None
  5. Bare Metal Deploy in months Lives for far too long!

    Containers Deploy in seconds Lives for hours AWS Lambda Deploy instantly Lives for seconds Virtualisation Deploy in minutes Lives for weeks
  6. Gazillions of baby Lambdas

  7. None
  8. AWS
 Lambda A compute service where you can upload your

    code and it runs the it on your behalf using AWS infrastructure.
  9. AWS
 Lambda Code function that executes when triggered by an

    event. Handler
  10. AWS
 Lambda Things that happen in AWS services: Event source

    API Gateway S3 SES SNS CloudWatch
 (logs, events & scheduled actions) CloudFormation DynamoDB Kinesis Cognito
  11. AWS
 Lambda Trigger from custom REST API and endpoint using

    Amazon API Gateway HTTPS only API Gateway event source
  12. AWS
 Lambda RequestResponse type Assumes response will be sent Asynchronous

    type for other applications Synchronous invocation
 for API Gateway
  13. AWS
 Lambda Supported: • Javascript (NodeJS) / Python / JVM

    Unsupported: • Ruby / Go / Haskell • (Actually anything) Languages
  14. AWS
 Lambda Console for simple implementations with no external dependencies.

    or Zip file with your code and dependencies. Upload directly or use S3 Deployment package
  15. AWS
 Lambda Only local state, and is limited to the

    current Lambda execution Stateless
  16. Amazon API Gateway A scalable, fully-managed service to publish, maintain,

    monitor, and secure APIs.
  17. Amazon API Gateway Each resource within a REST API can

    support one or more of the standard HTTP methods Define verbs supported for each resource (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS) and their implementations RESTful
  18. Amazon API Gateway Built in staging multiple stages (e.g. dev,

    test, deploy) Built-in versioning multiple versions simultaneously Staging & versioning
  19. Amazon API Gateway Works with Lambda or your own publicly

    accessible endpoints Lambda- or custom-backed
  20. Amazon API Gateway Custom authorisers, e.g. JWT, OAuth Cognito integration

    Authorisation & Authentication
  21. Amazon API Gateway Allows resources on a web page to

    be requested from another domain outside the domain from which the resource originated, e.g. calls to API Gateway endpoints CORS support
  22. Amazon API Gateway Android, iOS, or JavaScript boilerplate SDK code

    generation
  23. GET https://romanapi.com/v1/numeral/MCMLXIX { "result": 1969, "arabic": 1969, "roman": "MCMLXIX", "success":

    true, "original": "MCMLXIX" }
  24. Amazon
 S3 Host static websites Massively redundant & scalable Great

    for assets
 (css/images/javascripts) Custom domain names TLS supported
  25. Amazon CloudFront A global content delivery network (CDN) service

  26. Amazon CloudFront Improve performance of your web-facing assets

  27. Amazon CloudFront Additional layer of security, esp when coupled with

    WAF
  28. AWS WAF Web Application Firewall A web application firewall that

    helps protect your web applications from common web exploits
  29. Fully managed, scalable, fast NoSQL database Amazon DynamoDB

  30. None
  31. None
  32. middlemanapp.com

  33. jekyllrb.com

  34. None
  35. None
  36. apex.run

  37. Serverless should be considered as part of your cloud strategy

  38. Serverless is just another tool in your cloud toolset

  39. steven.ringo@versent.com.au Need a job?