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.

Jets: A Ruby Serverless Framework on AWS Lambda

128 views

Published on

This is the presentation I gave at the Toronto Serverless Meetup in September 2018.

We review how to run Ruby on AWS Lambda using a tool called Jets. Jets is a framework that enables you to create serverless applications with the beautiful language, Ruby. Learn how Ruby support was added to Lambda with native-like performance, and discover how Lambda works under the hood to understand how this was accomplished. We'll provide a live demo.

We'll also cover 4 different architectures built with Jets:
1. Web Restful API Architecture
2. Event Driven Security: Auto-Remediation
3. Continuous Compliance: AWS Config Rules
4. Event Driven Internet of Things

Published in: Education
  • Be the first to comment

Jets: A Ruby Serverless Framework on AWS Lambda

  1. 1. Jets: A Ruby Serverless Framework on AWS Lambda by Tung Nguyen
  2. 2. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Tung Nguyen tung@boltops.com linkedin.com/in/tongueroo youtube.com/tongueroo @tongueroo sonic swiss-army knife jack elastic beanstalk ufo ecs deployment lono cloudformation framework jets ruby serverless framework Background
  3. 3. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Desire for Ruby
  4. 4. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Ruby on AWS Lambda
  5. 5. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Node Shim
  6. 6. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Shim
  7. 7. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Shim Issue
  8. 8. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Cold Starts
  9. 9. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Prewarm
  10. 10. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Prewarm
  11. 11. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lambda Execution Context
  12. 12. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Performance Comparison Ruby: 164ms Python: 178ms Essentially the Same!
  13. 13. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Demo Time: The Need for Speed Jets Ruby Serverless Framework
  14. 14. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Why Again? VS YAML Code
  15. 15. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Web API Architecture
  16. 16. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Simple Function
  17. 17. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Controllers
  18. 18. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Controllers
  19. 19. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Routes
  20. 20. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Routes
  21. 21. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Jobs
  22. 22. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Jobs
  23. 23. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Project Structure
  24. 24. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Demo Time: CRUD Jets Ruby Serverless Framework
  25. 25. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Web API Architecture Review
  26. 26. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Core Resource Model =
  27. 27. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Event Driven Security: Auto- Remediation
  28. 28. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Event Driven Security: Auto- Remediation Code
  29. 29. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Event Driven Security: Auto- Remediation Code
  30. 30. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Event Driven Security: Multiple Events Supported
  31. 31. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Polymorphic Support
  32. 32. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Polymorphic Support: Python
  33. 33. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Polymorphic Support: Node
  34. 34. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Continuous Compliance: AWS Config Rules
  35. 35. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Continuous Compliance: Config Rules Code
  36. 36. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Event Driven Compliance: AWS Config Rules
  37. 37. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Event Driven: Internet of Things
  38. 38. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Event Driven: Internet of Things Code
  39. 39. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Event Driven: Internet of Things Code
  40. 40. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Features Prewarming
  41. 41. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Features Prewarming Local Server
  42. 42. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Features Prewarming Local Server Jets Call
  43. 43. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Features Prewarming Local Server Jets Call REPL Console
  44. 44. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Features Prewarming Local Server Jets Call REPL Console Database Support
  45. 45. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Features Prewarming Local Server Jets Call REPL Console Database Support Function Properties
  46. 46. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Features Prewarming Local Server Jets Call REPL Console Database Support Function Properties IAM Policies
  47. 47. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Features Prewarming Local Server Jets Call REPL Console Database Support Function Properties IAM Policies Polymorphic Support
  48. 48. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Working Examples
  49. 49. � 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Thanks! Tung Nguyen tung@boltops.com linkedin.com/in/tongueroo youtube.com/tongueroo @tongueroo sonic swiss-army knife jack elastic beanstalk ufo ecs deployment lono cloudformation framework jets ruby serverless framework

×