O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

Serverless: The Good, the Bad and the Ugly (2019-11-19)

204 visualizações

Publicada em

Presented at PETechTalk in Melbourne

Publicada em: Tecnologia
  • Seja o primeiro a comentar

  • Seja a primeira pessoa a gostar disto

Serverless: The Good, the Bad and the Ugly (2019-11-19)

  1. 1. #PETechTalk@pacodelacruz@pacodelacruz Pe. Paco de la Cruz | Deloitte Platform Engineering Serverless The Good, the Bad and the Ugly
  2. 2. #PETechTalk@pacodelacruz @pacodelacruz linkedin.com/in/pacodelacruz pacodelacruz.io slideshare.net/pacodelac/presentations github.com/pacodelacruz
  3. 3. #PETechTalk@pacodelacruz What’s Serverless Main Players Use Cases The Good, the Bad, and the Ugly Demos Key Takeaways Q & A Agenda
  4. 4. #PETechTalk@pacodelacruz What is Serverless?
  5. 5. #PETechTalk@pacodelacruz Serverless and the Cloud Compute Spectrum
  6. 6. #PETechTalk@pacodelacruz Serverless and the Cloud Compute Spectrum
  7. 7. #PETechTalk@pacodelacruz Serverless and the Cloud Compute Spectrum
  8. 8. #PETechTalk@pacodelacruz We Won’t Cover Today Serverless Containers / CaaS FaaS on K8s / Container Orchestrators
  9. 9. #PETechTalk@pacodelacruz Serverless FaaS and its Benefits Server abstraction (Ops Productivity) Scaling, Load balancing & High availability built-in
  10. 10. #PETechTalk@pacodelacruz Serverless FaaS and its Benefits Server abstraction (Ops Productivity) Event-driven scaling not resource-driven Scaling, Load balancing & High availability built-in Pay only for what you use Devs Productivity (Programming Models)
  11. 11. #PETechTalk@pacodelacruz Serverless FaaS in a Nutshell Event Triggers Code Outputs React and get inputs from http request and services Code Send results to different services / protocols
  12. 12. #PETechTalk@pacodelacruz Serverless FaaS – Main Players AWS Lambda Azure Functions Google Cloud Functions
  13. 13. #PETechTalk@pacodelacruz Language Support Java 8 Go 1.x PowerShell Node.js 8.10 & 10 C# (.NET Core 1.0, 2.1) Python 2.7, 3.6, 3.7 Ruby code 2.5 Runtime API (extend) C# Node.js 8 & 10 F# Java 8 Python 3.6 PowerShell (Preview) Typescript Node.js 8 & 10 Python 3.7 Go 1.11
  14. 14. #PETechTalk@pacodelacruz Triggers (not an exhaustive list) Sync Http API / Webhooks, Alexa, Kinesis, Lex, etc. Async S3, SNS, SES, CloudWatch, CodeCommit, etc. Sync Http API / Webhooks Async Event Grid, Blob, Cosmos DB, Event Hubs, Queue Storage, Service Bus, Timer, Graph Events Sync Http API / Webhooks Async Cloud Storage, Cloud Pub/Sub, Firebase, Stackdriver Logging
  15. 15. #PETechTalk@pacodelacruz Use Cases APIs for SPAs APIs for Web Apps Mobile App Back Ends IoT Back Ends Integration Pub/Sub Services Event Stream Processing Data Processing MapReduce IT and Ops Automation CRON Jobs Chatbots
  16. 16. #PETechTalk@pacodelacruz Speed-to-Market Focus on Business Value (Devs & Ops) Cost (with Sporadic Loads) Event-Based Scaling (Ideal for Bursty Loads) Tooling, Local Dev & Portable Runtime Event Triggers (More than just Http) The Good
  17. 17. #PETechTalk@pacodelacruz Vendor Lock-in Limited Programming Languages Opinionated Programming Models Timeouts Still Maturing Constant Changes The Bad
  18. 18. #PETechTalk@pacodelacruz Cold Starts The Ugly Server Allocation Function Deployment Loaded into Memory Code Execution
  19. 19. #PETechTalk@pacodelacruz Cold Starts *, ** The Ugly Server Allocation Function Deployment Loaded into Memory Code Execution * Only impacts interactive sync requests ** There are some mitigation strategies
  20. 20. #PETechTalk@pacodelacruz Sync & Low Latency Constant Load Portability Full-Control of Infrastructure Language Lack of Support Limitations of Programming Model Sync & Low Latency Workloads Constant Load Portability Full-Control of Infrastructure Language Lack-of-Support Limitations of Programming Models When Not to Use Serverless
  21. 21. #PETechTalk@pacodelacruz Let’s have some fun!Pe.
  22. 22. #PETechTalk@pacodelacruz Quick Introduction to Azure Functions Programming Models (Bindings) Development and Monitoring Tooling Demo 1 github.com/pacodelacruz/ serverless-intro-azure-functions
  23. 23. #PETechTalk@pacodelacruz Building a Serverless Request Bin Memory cache across instances Strategy to mitigate cold-starts Dependency Injection Deployment to Azure Demo 2 github.com/pacodelacruz/ serverless-request-bin-azure-functions
  24. 24. #PETechTalk@pacodelacruz Productivity (Prog. Models, Devs & Ops Tools) Ideal for Bursty or Async Short-lived Loads Specific Use Cases (More than just Http) Enterprise-Grade for Certain Scenarios Evolving Rapidly, Still Maturing Know the Capabilities of your Cloud Provider Key Takeaways
  25. 25. #PETechTalk@pacodelacruz Q & A
  26. 26. #PETechTalk@pacodelacruz :)
  27. 27. #PETechTalk@pacodelacruz @pacodelacruz linkedin.com/in/pacodelacruz pacodelacruz.io slideshare.net/pacodelac/presentations github.com/pacodelacruz

×