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

[Caipyra 2017] In the land of Serverless, who uses Zappa is king!

[Caipyra 2017] In the land of Serverless, who uses Zappa is king!

Serverless is an architecture style where we don't have servers*, dealing just with third-party services. This means infinite scaling, less downtime and less maintenance. Of course this is not the answer for every problem, but it can be a good choice.

Together with this concept, there's Zappa, a framework that makes that easily to deploy Python WSGI applications with AWS Lambda and AWS API Gateway.

In this talk, we're going to discuss about the concept and the tool, deploying a web Python application with Zappa!

* Kidding: Serverless still has servers ;)

67e79c99f3b6e205ebc68a6ab91545ad?s=128

Jonatas Baldin

June 25, 2017
Tweet

Transcript

  1. WHERE'S WALDO?

  2. WHERE'S WALDO?

  3. None
  4. None
  5. IN THE SERVERLESS LAND, WE HAVE ANOTHER GAME

  6. WHERE'S THE SERVER?

  7. WHERE'S THE SERVER?

  8. 3..2..1..

  9. None
  10. None
  11. None
  12. None
  13. (m)BaaS Bridge between mobile/web apps to cloud databases and applications

    (mobile)Backend as a Service
  14. (m)BaaS Bridge between mobile/web apps to cloud databases and applications

    (mobile)Backend as a Service
  15. (m)BaaS Bridge between mobile/web apps to cloud databases and applications

    (mobile)Backend as a Service
  16. FaaS Code that runs on event-driven, ephemeral and stateless environments

    fully managed by a third-party Function as a Service
  17. FaaS Code that runs on event-driven, ephemeral and stateless environments

    fully managed by a third-party Function as a Service
  18. FaaS Code that runs on event-driven, ephemeral and stateless environments

    fully managed by a third-party Function as a Service
  19. FaaS Code that runs on event-driven, ephemeral and stateless environments

    fully managed by a third-party Function as a Service
  20. FaaS Code that runs on event-driven, ephemeral and stateless environments

    fully managed by a third-party Function as a Service
  21. FaaS Code that runs on event-driven, ephemeral and stateless environments

    fully managed by a third-party Function as a Service
  22. FaaS Code that runs on event-driven, ephemeral and stateless environments

    fully managed by a third-party Function as a Service
  23. FaaS Code that runs on event-driven, ephemeral and stateless environments

    fully managed by a third-party Function as a Service
  24. FaaS Code that runs on event-driven, ephemeral and stateless environments

    fully managed by a third-party Function as a Service
  25. FaaS Code that runs on event-driven, ephemeral and stateless environments

    fully managed by a third-party Function as a Service
  26. None
  27. None
  28. None
  29. None
  30. None
  31. Use Cases Web/Mobile Backends Bots Data Processing IoT

  32. Benefits COST

  33. Benefits COST CO ST

  34. Benefits COST CO ST CO ST

  35. Benefits COST CO ST CO ST COST

  36. Benefits COST CO ST CO ST COST COST

  37. Benefits COST CO ST CO ST COST COST COST

  38. Benefits COST CO ST CO ST COST COST COST COST

  39. * First 1 million requests per month are free *

    $0.20 per 1 million requests thereafter ($0.0000002 per request)
  40. Benefits Infinite Scale Package and Deploy Time to Market Operational

    Management*
  41. Do you mean... #NoOps?

  42. Every time you say NoOps, a sysadmin dies. @jonatasbaldin

  43. Enough concepts, let's talk about tooling

  44. Serverless Frameworks* It's been two years since the first one

    and we already have like 20+ frameworks
  45. Serverless Frameworks* It's been two years since the first one

    and we already have like 20+ frameworks
  46. Serverless Frameworks* It's been two years since the first one

    and we already have like 20+ frameworks WHY?
  47. Everything is new It's not easy Lot of moving pieces

    No specs whatsoever
  48. None
  49. None
  50. None
  51. FEATURES!

  52. Python WSGI Applications Great for micro AND macro services AWS

    Lambda + AWS API Gateway AWS Event Sources (HTTP Hybrid) VPC Integration Cron-like Events Logs Rollback C-Extension (lambda-packages)
  53. Environment variables from S3 CI smooth integration Multiple stage deployments

    Remote Invoke Commands Django Management Commands (yeah!) Keep Warm Free SSL Globally Distributed Availability
  54. None
  55. Drawbacks Vendor control/lock-in No server optimizations No in-server state

  56. Opportunities Tooling for testing, debugging, monitoring, orchestration and so on

    Open source projects Learning and teaching *LOTS OF* improvements
  57. And the question that everyone is wondering....

  58. Is it production ready?

  59. YES! but try if first

  60. Jonatas Baldin @jonatasbaldin Developer @ Cheesecake Labs

  61. In the land of Serverless, who uses Zappa is king!

  62. Jonatas Baldin @jonatasbaldin Developer @ Cheesecake Labs