Fun & Easy Bots

But without your stinkin' server. 

Linda Nichols

Me.

  • @lynnaloo on the internet
    
  • Makes art, robots, and software
  • Software Engineer @ ETA
  • Really likes cats and turtles
  • React.js Fan
  • Does not know .NET

Me.

Organizes stuff:
  • Norfolk.js
  • NodeBots Day Norfolk
  • RevolutionConf
Today, we're going to break-up with our servers.

Happy Valentine's Day!

#goserverless

No Commitment!

"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).

What does it look like?

'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}`);
};

Let's Talk about Bots!

  • 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?

Your Perfect Match

  • 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!

How do I Get Started?

  • 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

Also, Did You Know...

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

My Bot Projects

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

Goodnight!

Fun and Easy Serverless Bots

By Linda Nichols

Fun and Easy Serverless Bots

HRNug 2/14/17 Lightning Talk about Serverless Bots and Valentine's Day.

  • 1,843