But without your stinkin' server.
Linda Nichols
@lynnaloo on the internet
Makes art, robots, and software
Software Engineer @ ETA
Really likes cats and turtles
React.js Fan
Does not know .NET
Organizes stuff:
Norfolk.js
NodeBots Day Norfolk
RevolutionConf
Today, we're going to break-up with our servers.
#goserverless
"Serverless" just means running our code on someone else's servers (~ the cloud).
Stateless functions are stored in separate containers and we only pay when we call them (FaaS).
'use strict';
module.exports.runBot = (event, context) => {
const now = new Date();
console.log(`Your scheduled function is executing`);
console.log(`${context.functionName} ran at ${now}`);
};
Automatic tweets
Machine Learning Analysis
Slack Integrations
So, why do a lot of work and pay a lot to run just a little bit of code?
You don't need DevOps skills
You don't need to learn a new language*
You don't need a new cloud provider*
There are a many tools and plugins
#Serverless is perfect for small, isolated projects that need some processing power. Like Bots!
Serverless (previously JAWS)
Apex
Smallwins, Bustle, etc.
Specialty plugins
Pick a project, pick a cloud, [pick your tools].
Amazon Lambda
Google Cloud Functions
Azure Functions
IBM OpenWhisk
AWS Lambdas and Serverless Framework now support C#?
Time for a special Valentine's Day Bot!
Mention @thesecatstweet in a tweet with the hashtag #happyvalentinebot
go-away-kitty - Amazon Rekognition and AWS SNS to send alerts.
adopt-a-pet-bot - Uses adopt-a-pet API to tweet adoptable pets on a schedule
valentines-day-bot - Replies to mentions with a special message!
github.com/lynnaloo