Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

London Adapt or Die: Five Things Enterprises Should Know About Serverless

360 views

Published on

Five Things Enterprises Should Know About Serverless. by Greg Brail

Published in: Technology
  • Be the first to comment

  • Be the first to like this

London Adapt or Die: Five Things Enterprises Should Know About Serverless

  1. 1. ©2016 Apigee Corp. All Rights Reserved. Five Things You Should Know About Serverless Greg Brail
  2. 2. ©2016 Apigee Corp. All Rights Reserved. What is “Serverless?”
  3. 3. ©2016 Apigee Corp. All Rights Reserved. Execution model in code runs in a fully managed, environment; the provider handles the servers, operating systems and runtime environments
  4. 4. ©2016 Apigee Corp. All Rights Reserved. No servers to manage Automatic Scale Pay by request Lightweight Code with No State Attributes of Serverless
  5. 5. ©2016 Apigee Corp. All Rights Reserved. Deployment = VM Code Event based No access to file system Pay by request Built-in logging / monitoring Google Cloud Functions AWS Lambda Azure Functions What is FaaS?
  6. 6. ©2016 Apigee Corp. All Rights Reserved. Technologies: Amazon Lambda Reinvigorated the “serverless” craze Functions in Node.js, Java, Python, or .NET. Functions invoked by HTTP APIs through “API Gateway” Functions also invoked by changes to S3, DynamoDB, etc. Priced by request count and CPU usage by second 6
  7. 7. ©2016 Apigee Corp. All Rights Reserved. Technologies: Azure Functions C#, F#, Node.js, Python, bash, or custom function types Triggered by HTTP APIs plus various events in the Azure platform Priced by CPU usage in seconds 7
  8. 8. ©2016 Apigee Corp. All Rights Reserved. Technologies: Cloud Functions Functions written in Node.js Called as HTTP APIs, from Cloud Storage, or Cloud Pub / Sub Alpha release so far 8
  9. 9. ©2016 Apigee Corp. All Rights Reserved. Technologles: App Engine The original “serverless,” but technically “PaaS” in some forms Python, Java, PHP, Go, Node.js, Ruby, and custom runtimes Invoked via an HTTP API Priced by machine instance hour (”standard environment”) or by CPU usage (“flex”) 9
  10. 10. ©2016 Apigee Corp. All Rights Reserved. How Serverless Changes Things 10
  11. 11. ©2016 Apigee Corp. All Rights Reserved. Application Design Matters Not everything can work in a serverless world Developers working with PaaS learned that as well 11 By Adam Wiggins, 12factor.net
  12. 12. ©2016 Apigee Corp. All Rights Reserved. Faa S Baa S PubSub API Gateway Async Events Sync Events Reimagined Stack
  13. 13. ©2016 Apigee Corp. All Rights Reserved. Simple database as a service Usually NoSQL Limited index configuration Pay by request / storage Built-in logging / monitoring API BaaS (Usergrid) Firebase DynamoDB Cloud Datastore SimpleDB Google BaaS AWS BaaS What is BaaS?
  14. 14. Cloud Datastore Transactions Per Second (50x Actual Traffic, 5X Worst Case Estimate, 1X Target Traffic) Original Launch Target Estimated Worst Case Actual Traffic
  15. 15. ©2016 Apigee Corp. All Rights Reserved. ● Economies of Scale ● No Less Ops ● Simplified Programming Model BaaS Benefits
  16. 16. ©2016 Apigee Corp. All Rights Reserved. Faa S PubSub API Gateway Async Events Sync Events Communication Patterns
  17. 17. ©2016 Apigee Corp. All Rights Reserved. /order function getOrder(..) function createOrder(..) function updateOrder(..) function deleteOrder(..) APIs for REST <-> RPC
  18. 18. ©2016 Apigee Corp. All Rights Reserved. Design Develop Secure PublishMonitor Analyze Monetize Scale Full Lifecycle API Management
  19. 19. ©2016 Apigee Corp. All Rights Reserved. Example Production Deployment
  20. 20. ©2016 Apigee Corp. All Rights Reserved. When does Serverless Make Sense? 20
  21. 21. ©2016 Apigee Corp. All Rights Reserved.
  22. 22. ©2016 Apigee Corp. All Rights Reserved. Serverless == Different Constraints Faster code deployment Lower initial cost More flexible overall architecture ... But … Have to stay “in bounds” Should keep deployments small Many potential dependencies 22
  23. 23. ©2016 Apigee Corp. All Rights Reserved. Flexibility vs. Convenience 23 Serverless PaaS Containers Virtual Machines More Limited Environment Limited Environment Containers Only Fully Flexible Most Convenient Least Convenient
  24. 24. ©2016 Apigee Corp. All Rights Reserved. Serverless PaaS Containers VMs Run Servers depends ✔ React to many event types ✔ Billed by request depends container VM Local state ✔ ✔ Run any environment ✔ ✔ Customize OS ✔ ✔ How Do I Choose?
  25. 25. 27 Your turn! apigee.com/about/developers https://cloud.google.com/nodejs/samples/ @pbhogill
  26. 26. ©2016 Apigee Corp. All Rights Reserved. Stack Reimagined Simplified Cheap Lots of fun Some Gotchas Five Things to Know
  27. 27. ©2016 Apigee Corp. All Rights Reserved. Conclusion As developers, we live in a world full of options It’s up to us to learn them try, them, and apply what we learn 29
  28. 28. Thank you 30

×