SlideShare a Scribd company logo
Jets:
A Ruby Serverless Framework
on AWS Lambda
by Tung Nguyen
© 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
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Desire for Ruby
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Ruby on AWS Lambda
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Node Shim
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Shim
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Shim Issue
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Cold Starts
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Prewarm
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda Prewarm
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lambda Execution Context
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Performance Comparison
Ruby: 164ms
Python: 178ms
Essentially the Same!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Demo Time: The Need for Speed
Jets
Ruby Serverless Framework
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Why Again?
VS
YAML Code
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Web API Architecture
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Jets Simple Function
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Jets Controllers
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Jets Controllers
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Jets Routes
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Jets Routes
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Jets Jobs
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Jets Jobs
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Jets Project Structure
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Demo Time: CRUD
Jets
Ruby Serverless Framework
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Web API Architecture Review
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Jets Core Resource Model
=
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Event Driven Security: Auto-
Remediation
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Event Driven Security: Auto-
Remediation Code
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Event Driven Security: Auto-
Remediation Code
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Event Driven Security: Multiple Events
Supported
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Polymorphic Support
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Polymorphic Support: Python
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Polymorphic Support: Node
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Continuous Compliance: AWS Config
Rules
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Continuous Compliance: Config Rules
Code
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Event Driven Compliance: AWS Config
Rules
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Event Driven: Internet of Things
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Event Driven: Internet of Things Code
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Event Driven: Internet of Things Code
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Jets Features
Prewarming
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Jets Features
Prewarming
Local Server
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Jets Features
Prewarming
Local Server
Jets Call
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Jets Features
Prewarming
Local Server
Jets Call
REPL Console
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Jets Features
Prewarming
Local Server
Jets Call
REPL Console
Database Support
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Jets Features
Prewarming
Local Server
Jets Call
REPL Console
Database Support
Function Properties
© 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
© 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
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Working Examples
© 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

More Related Content

PPTX
Ruby Support for AWS Lambda at Native Speed with Jets
PDF
GDC2018 recap Game On JP
PPTX
AWS re:Invent 2018
PDF
はじめてのグラフデータベース 〜 Amazon Neptune と主なユースケース 〜
PDF
俺たちの AWS Loft Tokyo 実際に作ってみたらこうなった
PDF
AWSのIoTソリューション本番導入にむけた取り組み
PDF
AWS上でのオンラインゲームリリースガイド
PDF
AWS におけるエッジでの機械学習
Ruby Support for AWS Lambda at Native Speed with Jets
GDC2018 recap Game On JP
AWS re:Invent 2018
はじめてのグラフデータベース 〜 Amazon Neptune と主なユースケース 〜
俺たちの AWS Loft Tokyo 実際に作ってみたらこうなった
AWSのIoTソリューション本番導入にむけた取り組み
AWS上でのオンラインゲームリリースガイド
AWS におけるエッジでの機械学習

Similar to Jets: A Ruby Serverless Framework (20)

PDF
Ruby Conference Belarus 2019 Apr Jets Ruby Serverless Framework
PDF
Jets: The Ruby Serverless Framework Ruby Kaigi Japan 2019 April
PDF
Jets: The Ruby Serverless Framework Nashville Tennessee 2019 August
PDF
Jets: The Ruby Serverless Framework Balkan Ruby Bulgaria 2019 May
PDF
Continuous Deployment @ AWS Re:Invent
PDF
Community day _aws_ci_cd_v0.2
PPTX
AWS re:Invent recap
PDF
Serverless best practices plus design principles 20m version
PDF
マイクロサービスを AWS サーバレス&コンテナで実装する方法
PDF
Serverless Architectural Patterns 
and Best Practices - Madhu Shekar - AWS
PDF
Serverless use cases with AWS Lambda
PDF
Building Serverless Microservices with AWS
PPTX
COP_RoR_QuArrk_Session_Oct_2022.pptx
PDF
Talk at NCRR P41 Director's Meeting
PDF
How AWS builds Serverless services using Serverless
PPTX
Getting started with Serverless on AWS
PDF
PyConIT 2018 Writing and deploying serverless python applications
PDF
Flying Server-less on the Cloud with AWS Lambda
PPTX
Serverless Cron Jobs with Ruby on Jets
PDF
CI CD using AWS Developer Tools @ AWS Community Day Bengaluru 2018
Ruby Conference Belarus 2019 Apr Jets Ruby Serverless Framework
Jets: The Ruby Serverless Framework Ruby Kaigi Japan 2019 April
Jets: The Ruby Serverless Framework Nashville Tennessee 2019 August
Jets: The Ruby Serverless Framework Balkan Ruby Bulgaria 2019 May
Continuous Deployment @ AWS Re:Invent
Community day _aws_ci_cd_v0.2
AWS re:Invent recap
Serverless best practices plus design principles 20m version
マイクロサービスを AWS サーバレス&コンテナで実装する方法
Serverless Architectural Patterns 
and Best Practices - Madhu Shekar - AWS
Serverless use cases with AWS Lambda
Building Serverless Microservices with AWS
COP_RoR_QuArrk_Session_Oct_2022.pptx
Talk at NCRR P41 Director's Meeting
How AWS builds Serverless services using Serverless
Getting started with Serverless on AWS
PyConIT 2018 Writing and deploying serverless python applications
Flying Server-less on the Cloud with AWS Lambda
Serverless Cron Jobs with Ruby on Jets
CI CD using AWS Developer Tools @ AWS Community Day Bengaluru 2018
Ad

Recently uploaded (20)

PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Pharma ospi slides which help in ospi learning
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
GDM (1) (1).pptx small presentation for students
PDF
RMMM.pdf make it easy to upload and study
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
master seminar digital applications in india
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Supply Chain Operations Speaking Notes -ICLT Program
Pharmacology of Heart Failure /Pharmacotherapy of CHF
102 student loan defaulters named and shamed – Is someone you know on the list?
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Pharma ospi slides which help in ospi learning
O5-L3 Freight Transport Ops (International) V1.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
GDM (1) (1).pptx small presentation for students
RMMM.pdf make it easy to upload and study
TR - Agricultural Crops Production NC III.pdf
master seminar digital applications in india
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Abdominal Access Techniques with Prof. Dr. R K Mishra
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Ad

Jets: A Ruby Serverless Framework

  • 1. Jets: A Ruby Serverless Framework on AWS Lambda by Tung Nguyen
  • 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. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Desire for Ruby
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Ruby on AWS Lambda
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Node Shim
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Shim
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Shim Issue
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Cold Starts
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Prewarm
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda Prewarm
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lambda Execution Context
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Performance Comparison Ruby: 164ms Python: 178ms Essentially the Same!
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Demo Time: The Need for Speed Jets Ruby Serverless Framework
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Why Again? VS YAML Code
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Web API Architecture
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Simple Function
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Controllers
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Controllers
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Routes
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Routes
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Jobs
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Jobs
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Project Structure
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Demo Time: CRUD Jets Ruby Serverless Framework
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Web API Architecture Review
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Core Resource Model =
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Event Driven Security: Auto- Remediation
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Event Driven Security: Auto- Remediation Code
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Event Driven Security: Auto- Remediation Code
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Event Driven Security: Multiple Events Supported
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Polymorphic Support
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Polymorphic Support: Python
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Polymorphic Support: Node
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Continuous Compliance: AWS Config Rules
  • 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Continuous Compliance: Config Rules Code
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Event Driven Compliance: AWS Config Rules
  • 37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Event Driven: Internet of Things
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Event Driven: Internet of Things Code
  • 39. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Event Driven: Internet of Things Code
  • 40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Features Prewarming
  • 41. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Features Prewarming Local Server
  • 42. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Features Prewarming Local Server Jets Call
  • 43. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Features Prewarming Local Server Jets Call REPL Console
  • 44. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jets Features Prewarming Local Server Jets Call REPL Console Database Support
  • 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. © 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. © 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. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Working Examples
  • 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