SlideShare a Scribd company logo
Don’t Let FaaS Do a BaaS
Job
...a workshop on serverless functions using BaaS, by Tessa Mero
May 30th, 2019 - DeveloperWeek Seattle
The content of this presentation is proprietary information of Cloudinary. It is not intended to be distributed to any third party without the written
consent of Cloudinary. © 2019 Cloudinary inc.
@tessamero
Oh hai
● Community Leader
○ Past: Joomla, PHP
○ Current: API, Vue.js, JAMStack
● Developer, Teacher, Advocate
● Gamer + Mom
● Korean Food Enthusiast
● Steak Hobbyist
@tessamero
Topics
● What is Serverless?
● Different Services
● Serverless Frameworks
● Using Serverless
Functions and BaaS
● Resources Let’s make your flower
of knowledge bloom!
@tessamero
What is Serverless?
History
Physical Servers Virtual Machines Containers Serverless
What is
Serverless?
● No Servers!
No More Managing Servers!
Serverless doesn’t mean there are no servers being used, it is the
concept of not having to manage/provision or worry about
servers for your applications
What is
Serverless?
● No Servers!
● Cost
Cost Efficiency
Pay for your resources used rather than the time (provisioned
capacity)
What is
Serverless?
● No Servers!
● Cost
● Scale
Erm. So uhh, Does it Scale?
Auto scaling is built in Serverless!
What is
Serverless?
● No Servers!
● Cost
● Scale
● Time
What will you do with your extra TIME?
Taking a Look at Different
Services
Taking a Look
at Different
Services
● IaaS
IaaS - Infrastructure as a Service
Examples:
● Amazon Elastic Cloud Computing (AWS
EC2)
Taking a Look
at Different
Services
● IaaS
● SaaS
SaaS - Software as a Service
Examples:
● Stripe
● PayPal
● Slack
*Responsible for integrating services
Taking a Look
at Different
Services
● IaaS
● SaaS
● PaaS
PaaS - Platform as a Service
Example:
● Heroku
Provides an entire platform
Taking a Look
at Different
Services
● IaaS
● SaaS
● PaaS
● BaaS
BaaS - Backend as a Service
Examples:
● Amazon’s DynamoDB
● Google’s Firebase
Service with complex backend usually with
dedicated SDKs and APIs
Taking a Look
at Different
Services
● IaaS
● SaaS
● PaaS
● BaaS
● FaaS
FaaS - Functions as a Service
Examples:
● Azure Functions
● Amazon’s Lambda
Allows a service to be executed when
triggered
Serverless Frameworks
Serverless
Frameworks
● Amplify Framework
Amplify Framework - JS library for front-end devs, works
with all Frameworks
https://aws-amplify.github.io/
Serverless
Frameworks
● Amplify Framework
● Architect
Architect - An open-source framework. Create, deploy,
and maintain next-generation AWS cloud function-based
serverless infrastructure with full local, offline workflows,
and more
https://arc.codes
Serverless
Frameworks
● Amplify Framework
● Architect
● Serverless
Serverless Framework -First original serverless
framework. The most popular on Github with 30k stars
https://serverless.com
Using Serverless Functions (FaaS)
and BaaS
Using Lambda, UnSplash API, and Cloudinary API
End Result:
Deploy a function and a random image will be selected
from Unsplash and then uploaded to your Cloudinary media
library!
Let’s Get Started!
What You Will Need:
● Serverless login serverless.com
● AWS IAM Access Token aws.amazon.com
● Unsplash API Key unsplash.com
● Cloudinary API Key cloudinary.com
Install Serverless Framework
and Login
npm i -g serverless
serverless login
@tessamero
Start with node.js template
serverless create -t aws-nodejs
handler.js
serverless.yml
@tessamero
Create an AWS Access Key
Search for IAM in Amazon’s AWS and Set up a User
https://serverless.com/framework/docs/providers/aws/guide/credentials/
Quick Instructions:
IAM -> Users -> Add User -> Enable Programmatic Access -> Next ->
Create User
@tessamero
open serverless.yml
service: aws-nodejs
app: XXX
tenant: XXX
serverless deploy
@tessamero
Test by Invoking Function
serverless invoke -f hello -l
@tessamero
update the handler.js file
https://gist.github.com/tessamero/ and click on
“handler.js” and copy the js code
You can also find this tutorial and code snippets at
the FullStackTraining here:
https://blog.fullstacktraining.com/introduction-to-serverless-faas/
@tessamero
Create a package.json file
https://gist.github.com/tessamero/ and click on
“package.json” and copy the js code
@tessamero
deploy!
https://gist.github.com/tessamero/ and click on
“serverless.yml” and copy the code
@tessamero
Update the serverless.yml file
serverless deploy
@tessamero
Endpoint reached! @tessamero
Resources:
The Serverless Revolution: Why and How The Movement Will Allow Teams to
Deploy with More Velocity and Confidence, by Ravi Lachhman
What is Serverless? by ServerlessOps
Know your history - It’s a serverless world by JAX Editorial Team
Origin of Serverless by Joshua Harding
Introduction to Serverless FaaS by Tamas Piros
15 Frameworks for Creating Serverless Apps by Alex Ivanovs
Challenge: Transform a Unicorn
Before it’s Gone!
● Step 1: Find the Cloudinary Unicorn (hint:.....)
● Step 2: Take a Picture of the Unicorn
● Step 3: Upload and Transform the photo. Sign up for a free account at
https://cloudinary.com.
○ Go to Media Manager
○ Upload Image. Click “Edit”
○ Click “Transform” and change some presets
○ Copy the “https” URL!
● Step 4: DM me to claim your unicorn (send the URL)
https://twitter.com/tessamero
○ (hurry, the unicorns won’t last long!)
<< end
● Twitter: https://twitter.com/tessamero
● Email.: tessa.mero@cloudinary.com
● Slides: https://slideshare.net/tessa99
THANK YOU!
@tessamero

More Related Content

PDF
Serverless NodeJS With AWS Lambda
PDF
First Step Into NodeJS World
PDF
Using WordPress as a Headless CMS
PDF
Serverless Empowering people
PDF
PostCSS - process CSS in a modular way.
PDF
Using eZ Platform as a Headless CMS (with Vue.js)
PPTX
Firebase.pptx
PPTX
Firebase.pptx
Serverless NodeJS With AWS Lambda
First Step Into NodeJS World
Using WordPress as a Headless CMS
Serverless Empowering people
PostCSS - process CSS in a modular way.
Using eZ Platform as a Headless CMS (with Vue.js)
Firebase.pptx
Firebase.pptx

What's hot (12)

PDF
Using WordPress as a local Intranet Hub, Milwaukee WordCamp 2013 | Samer Sultan
PPTX
Aws amity university_presentation_oct-31-2020
PDF
Microfrontends: The good, the bad, and the ugly
PDF
Web Policies & Reporting
PPTX
PDF
Progressive Web Apps. What, why and how
PPTX
Build fast word press site in react in 30 mins with frontity
PPTX
PPTX
Scaffolding in One Asp.Net
PPTX
Introduction to Vue.js DevStaff Meetup 13.02
PDF
Postcss brewbox slides
PDF
Building APIs the serverless way
Using WordPress as a local Intranet Hub, Milwaukee WordCamp 2013 | Samer Sultan
Aws amity university_presentation_oct-31-2020
Microfrontends: The good, the bad, and the ugly
Web Policies & Reporting
Progressive Web Apps. What, why and how
Build fast word press site in react in 30 mins with frontity
Scaffolding in One Asp.Net
Introduction to Vue.js DevStaff Meetup 13.02
Postcss brewbox slides
Building APIs the serverless way
Ad

Similar to Don't let FaaS do a BaaS job (20)

PDF
Serverless: A love hate relationship
PPTX
Serverless Architectures
PDF
Why Serverless?
PDF
Microservices and Serverless for Mega Startups - DevOps IL Meetup
PDF
Jak nie zwariować z architekturą Serverless?
PDF
Montréal AWS Users United: Let's go Serverless!
PDF
20180111 we bde-bs - serverless url shortener
PDF
Serverless Node.js
PDF
Serverless Toronto User Group - Let's go Serverless!
PDF
Designing Serverless Architectures on AWS
PPTX
Why serverless will revolutionize your software process.
PDF
Learning Serverless Design Develop and Deploy with Confidence 1st Edition Jas...
PDF
The future will be Serverless (FrontConf Munich 2017)
PDF
Introduction to Serverless
PPTX
Serverless-Computing-The-Future-of-Backend-Development
PDF
AWS Application Service Workshop - Serverless Architecture
PDF
Serverless - The Future of the Cloud?!
PPTX
What is Serverless Computing?
PPTX
What serverless means for enterprise apps
PPTX
awslambda-240508203904-07xsds253491.pptx
Serverless: A love hate relationship
Serverless Architectures
Why Serverless?
Microservices and Serverless for Mega Startups - DevOps IL Meetup
Jak nie zwariować z architekturą Serverless?
Montréal AWS Users United: Let's go Serverless!
20180111 we bde-bs - serverless url shortener
Serverless Node.js
Serverless Toronto User Group - Let's go Serverless!
Designing Serverless Architectures on AWS
Why serverless will revolutionize your software process.
Learning Serverless Design Develop and Deploy with Confidence 1st Edition Jas...
The future will be Serverless (FrontConf Munich 2017)
Introduction to Serverless
Serverless-Computing-The-Future-of-Backend-Development
AWS Application Service Workshop - Serverless Architecture
Serverless - The Future of the Cloud?!
What is Serverless Computing?
What serverless means for enterprise apps
awslambda-240508203904-07xsds253491.pptx
Ad

More from Tessa Mero (20)

PDF
Developer relations KPIs
PDF
Getting into the tech field. what next
PDF
5 ways to simply add media accessibility (m16y) to your jamstack app
PDF
I'm Graduating Soon. Help! How Do I Get into the Tech Field?
PDF
Optimize media performance in wordpress with cloudinary
PDF
Joining a developer experts program to leverage your career
PDF
Finding the Jelly in the JAMstack
PDF
Finding the jelly in the jam stack
PPTX
Chatbots Workshop SF JS Meetup May 2018
PPTX
ChatOps Workshop
PPTX
Cisco CMX Location Services
PPTX
DeveloperWeek2018 - Let's Build a Chatbot
PPTX
Learn to Code with JavaScript - Choose Your Own Adventures
PPTX
Revolutionize Your Workflow with ChatOps
PPTX
Let's Build a Chatbot
PPTX
DevNet 1056 WIT Spark API and Chat Bot Workshop
PPTX
Chatbots
PPTX
Building Chatbots
PPTX
Understanding REST APIs in 5 Simple Steps
PPTX
Nom Nom: Consuming REST APIs
Developer relations KPIs
Getting into the tech field. what next
5 ways to simply add media accessibility (m16y) to your jamstack app
I'm Graduating Soon. Help! How Do I Get into the Tech Field?
Optimize media performance in wordpress with cloudinary
Joining a developer experts program to leverage your career
Finding the Jelly in the JAMstack
Finding the jelly in the jam stack
Chatbots Workshop SF JS Meetup May 2018
ChatOps Workshop
Cisco CMX Location Services
DeveloperWeek2018 - Let's Build a Chatbot
Learn to Code with JavaScript - Choose Your Own Adventures
Revolutionize Your Workflow with ChatOps
Let's Build a Chatbot
DevNet 1056 WIT Spark API and Chat Bot Workshop
Chatbots
Building Chatbots
Understanding REST APIs in 5 Simple Steps
Nom Nom: Consuming REST APIs

Recently uploaded (20)

PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Machine learning based COVID-19 study performance prediction
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
cuic standard and advanced reporting.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Cloud computing and distributed systems.
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Approach and Philosophy of On baking technology
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Dropbox Q2 2025 Financial Results & Investor Presentation
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Network Security Unit 5.pdf for BCA BBA.
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Machine learning based COVID-19 study performance prediction
NewMind AI Monthly Chronicles - July 2025
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
cuic standard and advanced reporting.pdf
Big Data Technologies - Introduction.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Cloud computing and distributed systems.
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
Review of recent advances in non-invasive hemoglobin estimation
MYSQL Presentation for SQL database connectivity
Chapter 3 Spatial Domain Image Processing.pdf
Approach and Philosophy of On baking technology
CIFDAQ's Market Insight: SEC Turns Pro Crypto

Don't let FaaS do a BaaS job

  • 1. Don’t Let FaaS Do a BaaS Job ...a workshop on serverless functions using BaaS, by Tessa Mero May 30th, 2019 - DeveloperWeek Seattle The content of this presentation is proprietary information of Cloudinary. It is not intended to be distributed to any third party without the written consent of Cloudinary. © 2019 Cloudinary inc. @tessamero
  • 2. Oh hai ● Community Leader ○ Past: Joomla, PHP ○ Current: API, Vue.js, JAMStack ● Developer, Teacher, Advocate ● Gamer + Mom ● Korean Food Enthusiast ● Steak Hobbyist @tessamero
  • 3. Topics ● What is Serverless? ● Different Services ● Serverless Frameworks ● Using Serverless Functions and BaaS ● Resources Let’s make your flower of knowledge bloom! @tessamero
  • 5. History Physical Servers Virtual Machines Containers Serverless
  • 6. What is Serverless? ● No Servers! No More Managing Servers! Serverless doesn’t mean there are no servers being used, it is the concept of not having to manage/provision or worry about servers for your applications
  • 7. What is Serverless? ● No Servers! ● Cost Cost Efficiency Pay for your resources used rather than the time (provisioned capacity)
  • 8. What is Serverless? ● No Servers! ● Cost ● Scale Erm. So uhh, Does it Scale? Auto scaling is built in Serverless!
  • 9. What is Serverless? ● No Servers! ● Cost ● Scale ● Time What will you do with your extra TIME?
  • 10. Taking a Look at Different Services
  • 11. Taking a Look at Different Services ● IaaS IaaS - Infrastructure as a Service Examples: ● Amazon Elastic Cloud Computing (AWS EC2)
  • 12. Taking a Look at Different Services ● IaaS ● SaaS SaaS - Software as a Service Examples: ● Stripe ● PayPal ● Slack *Responsible for integrating services
  • 13. Taking a Look at Different Services ● IaaS ● SaaS ● PaaS PaaS - Platform as a Service Example: ● Heroku Provides an entire platform
  • 14. Taking a Look at Different Services ● IaaS ● SaaS ● PaaS ● BaaS BaaS - Backend as a Service Examples: ● Amazon’s DynamoDB ● Google’s Firebase Service with complex backend usually with dedicated SDKs and APIs
  • 15. Taking a Look at Different Services ● IaaS ● SaaS ● PaaS ● BaaS ● FaaS FaaS - Functions as a Service Examples: ● Azure Functions ● Amazon’s Lambda Allows a service to be executed when triggered
  • 17. Serverless Frameworks ● Amplify Framework Amplify Framework - JS library for front-end devs, works with all Frameworks https://aws-amplify.github.io/
  • 18. Serverless Frameworks ● Amplify Framework ● Architect Architect - An open-source framework. Create, deploy, and maintain next-generation AWS cloud function-based serverless infrastructure with full local, offline workflows, and more https://arc.codes
  • 19. Serverless Frameworks ● Amplify Framework ● Architect ● Serverless Serverless Framework -First original serverless framework. The most popular on Github with 30k stars https://serverless.com
  • 20. Using Serverless Functions (FaaS) and BaaS Using Lambda, UnSplash API, and Cloudinary API
  • 21. End Result: Deploy a function and a random image will be selected from Unsplash and then uploaded to your Cloudinary media library!
  • 23. What You Will Need: ● Serverless login serverless.com ● AWS IAM Access Token aws.amazon.com ● Unsplash API Key unsplash.com ● Cloudinary API Key cloudinary.com
  • 24. Install Serverless Framework and Login npm i -g serverless serverless login @tessamero
  • 25. Start with node.js template serverless create -t aws-nodejs handler.js serverless.yml @tessamero
  • 26. Create an AWS Access Key Search for IAM in Amazon’s AWS and Set up a User https://serverless.com/framework/docs/providers/aws/guide/credentials/ Quick Instructions: IAM -> Users -> Add User -> Enable Programmatic Access -> Next -> Create User @tessamero
  • 27. open serverless.yml service: aws-nodejs app: XXX tenant: XXX serverless deploy @tessamero
  • 28. Test by Invoking Function serverless invoke -f hello -l @tessamero
  • 29. update the handler.js file https://gist.github.com/tessamero/ and click on “handler.js” and copy the js code You can also find this tutorial and code snippets at the FullStackTraining here: https://blog.fullstacktraining.com/introduction-to-serverless-faas/ @tessamero
  • 30. Create a package.json file https://gist.github.com/tessamero/ and click on “package.json” and copy the js code @tessamero
  • 31. deploy! https://gist.github.com/tessamero/ and click on “serverless.yml” and copy the code @tessamero
  • 32. Update the serverless.yml file serverless deploy @tessamero
  • 34. Resources: The Serverless Revolution: Why and How The Movement Will Allow Teams to Deploy with More Velocity and Confidence, by Ravi Lachhman What is Serverless? by ServerlessOps Know your history - It’s a serverless world by JAX Editorial Team Origin of Serverless by Joshua Harding Introduction to Serverless FaaS by Tamas Piros 15 Frameworks for Creating Serverless Apps by Alex Ivanovs
  • 35. Challenge: Transform a Unicorn Before it’s Gone! ● Step 1: Find the Cloudinary Unicorn (hint:.....) ● Step 2: Take a Picture of the Unicorn ● Step 3: Upload and Transform the photo. Sign up for a free account at https://cloudinary.com. ○ Go to Media Manager ○ Upload Image. Click “Edit” ○ Click “Transform” and change some presets ○ Copy the “https” URL! ● Step 4: DM me to claim your unicorn (send the URL) https://twitter.com/tessamero ○ (hurry, the unicorns won’t last long!)
  • 36. << end ● Twitter: https://twitter.com/tessamero ● Email.: tessa.mero@cloudinary.com ● Slides: https://slideshare.net/tessa99 THANK YOU! @tessamero