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

Painful Serverless - Using AWS lambda as an http service - PyCON CA 2016

Painful Serverless - Using AWS lambda as an http service - PyCON CA 2016

Serverless doesn’t mean anything.
It is a fancy marketing word from cloud vendors.
It means you don’t have to administrate servers.
Function as a service is a better description: FaaS!
Anyway, it promises low operational costs, infinite scalability and less management.
In reality, it strongly challenges the way you design, implement and deploy your application.
This talk presents one of the ways we use at http://dialogue.co

Hadrien David

November 13, 2016
Tweet

Other Decks in Technology

Transcript

  1. I am Hadrien! • @hadr • Software engineer • Montreal

    Python organizer • Python since 2008 • AWS since 2008 • Infra + APIs
  2. AWS Lambda • Run code (js, py, java) • Pay

    compute time - (per 100ms chunk) • Zero server administration • Infinite scaling
  3. AWS API Gateway • HTTP front door • Pay as

    you go • 1000 req/s with burst up to 2000 • Automatic provisioning! “With a few clicks in the AWS Management Console…”
  4. HTTP API • Register device push token ◦ POST /devices

    • Send push to user ◦ POST /pushes
  5. References • Serverless Architectures - Mike Roberts • WTF is

    operations? - Charity Majors • Operational best practices #serverless - Charity Majors • The Twelve-Factor App