Don’t Let FaaS Do a BaaS Job · BaaS BaaS - Backend as a Service Examples: Amazon’s DynamoDB Google’s Firebase Service with complex backend usually with dedicated SDKs and APIs
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Don’t Let FaaS Do a BaaS Job ...a workshop on serverless functions using BaaS, by Tessa Mero May 30th, 2019 - DeveloperWeek Seattle
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
● Serverless
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
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!)