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

Globally distributed applications with Serverless Framework

5ff4f1dbfd3888fba963ec7cc629e6f3?s=47 mthenw
April 04, 2018

Globally distributed applications with Serverless Framework

Serverless Poznań meetup

5ff4f1dbfd3888fba963ec7cc629e6f3?s=128

mthenw

April 04, 2018
Tweet

More Decks by mthenw

Other Decks in Technology

Transcript

  1. GLOBALLY DISTRIBUTED APPLICATIONS WITH SERVERLESS FRAMEWORK

  2. Maciej Winnicki Principal Software Engineer Serverless, Inc.

  3. @mthenw

  4. what is serverless

  5. (re)volution of the cloud

  6. focus on business logic less concerns about stack implementation https://medium.com/openwhisk/five-minute-intro-to-open-source-serverless-development-with-openwhisk-328b0ebfa160

    bare metal IaaS PaaS functions hardware abstraction OS abstraction runtime abstraction
  7. Function-as-a-Service

  8. Function-as-a-Service Backend-as-a-Service + https://martinfowler.com/articles/serverless.html

  9. no server/container/process management http://blog.rowanudell.com/the-serverless-compute-manifesto/ costs scale with usage / never

    pay for idle auto-scale / auto-provision
  10. global availability • improved performance 
 (lower response time =

    more income) • increased fault tolerance • data locality
  11. CHALLENGES

  12. • How to route traffic to the closest region? •

    Where to store data? • How to store data in multiple regions? • How to sync data between regions? • Consistency vs. availability • What happens if one region failed?
  13. AWS re:Invent 2017: Building Resilient, Multi-Region Serverless Applications (SRV313)

  14. DEMO APPLICATION

  15. DISTRIBUTED KEY/VALUE STORE

  16. λ λ DynamoDB Global Table demo.serverlessperf.com DNS CNAME record DNS

    CNAME record
  17. • Logic - AWS Lambda • HTTP endpoint - AWS

    API Gateway + custom domains • Database - AWS DynamoDB + DynamoDB Global Tables • Global DNS - AWS Route53 Latency based routing
  18. None
  19. A CLI tool that manages the lifecycle of you serverless

    application.
  20. Features • application lifecycle management • manage code & infrastructure

    • scaffolding & automation • multi-provider • AWS • Google Cloud • Azure • IBM BlueMix • Kubeless • local development • extensibility • community
  21. None
  22. None