Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Nome Speaker
@twitter
 A Bot in minutes with Serverless
Tiago Martinho
@martinho_t
Alessio Coser
@AlessioCoser
A bot in minutes with Serverless
What is Serverless?
Custom code that’s run in an ephemeral context.
Aka Function as a Ser...
A bot in minutes with Serverless
What is Serverless?
Custom code that’s run in an ephemeral context.
Aka Function as a Ser...
A bot in minutes with Serverless
What is Serverless?
● It’s an abstraction layer
● It’s still a server!
● Created only to ...
A bot in minutes with Serverless
What is Serverless?
Custom code that’s run in an ephemeral context.
Aka Function as a Ser...
● No ops, just code
● Reduced maintenance
● Built-in automatic scaling
● Only pay for what you use
● You have to manage th...
A bot in minutes with Serverless
Cloud-Computing Providers
● Amazon AWS Lambda
● Google Cloud Functions
● Azure Functions
...
A bot in minutes with Serverless
Frameworks
● Serverless
● Claudia
● Apex
A bot in minutes with Serverless
Runtimes
● NODE.JS
● JAVA
● PYTHON
● MORE
A bot in minutes with Serverless
Let’s create a Bot!
A bot in minutes with Serverless
1. Install Claudia with Bot Builder
2. Define our function
3. Deploy to AWS Lambda
4. Cre...
A bot in minutes with Serverless
https://github.com/AlessioCoser
/really-simple-facebook-bot
A bot in minutes with Serverless
A bot in minutes with Serverless
AWS LAMBDA
Free each month:
1 MILLION REQUESTS
400,000 GB-SECONDS
$0.20 1 MILLION REQUEST...
A bot in minutes with Serverless
http://slides.com/pierodibello/lessons-learned-from-aws-lambda
http://www.xpeppers.com/bl...
www.xpeppers.com
/xpepperssrl@xpeppers
Upcoming SlideShare
Loading in …5
×

A bot in minutes with serverless

535 views

Published on

Serverless Architecture - How to make a Bot in minutes
We will explore what is serverless architecture and why it's a valuable resource when developing apps and services. We will also see why and how you should use Serverless, and end the talk with a Demo on how to create a Facebook Bot using AWS Lambda Service and the Claudia Framework.

Published in: Technology
  • Be the first to comment

A bot in minutes with serverless

  1. 1. Nome Speaker @twitter A Bot in minutes with Serverless Tiago Martinho @martinho_t Alessio Coser @AlessioCoser
  2. 2. A bot in minutes with Serverless What is Serverless? Custom code that’s run in an ephemeral context. Aka Function as a Service (FaaS)
  3. 3. A bot in minutes with Serverless What is Serverless? Custom code that’s run in an ephemeral context. Aka Function as a Service (FaaS) ● The code that we want to execute ● Our Application ● The Service we provide to our users
  4. 4. A bot in minutes with Serverless What is Serverless? ● It’s an abstraction layer ● It’s still a server! ● Created only to run your code and then destroyed ● Has no state or persistence Custom code that’s run in an ephemeral context. Aka Function as a Service (FaaS)
  5. 5. A bot in minutes with Serverless What is Serverless? Custom code that’s run in an ephemeral context. Aka Function as a Service (FaaS)
  6. 6. ● No ops, just code ● Reduced maintenance ● Built-in automatic scaling ● Only pay for what you use ● You have to manage the persistence of the state A bot in minutes with Serverless Main features
  7. 7. A bot in minutes with Serverless Cloud-Computing Providers ● Amazon AWS Lambda ● Google Cloud Functions ● Azure Functions ● Iron.io ● IBM Openwisk
  8. 8. A bot in minutes with Serverless Frameworks ● Serverless ● Claudia ● Apex
  9. 9. A bot in minutes with Serverless Runtimes ● NODE.JS ● JAVA ● PYTHON ● MORE
  10. 10. A bot in minutes with Serverless Let’s create a Bot!
  11. 11. A bot in minutes with Serverless 1. Install Claudia with Bot Builder 2. Define our function 3. Deploy to AWS Lambda 4. Create a Facebook Messenger App 5. Create a Page and get the access token 6. Update function with Page access token 7. Add Facebook Messenger webhook 8. Publish the Facebook App 1. Install Claudia with Bot Builder 2. Define our function 3. Deploy to AWS Lambda 4. Create a Facebook Messenger App 5. Create a Page and get the access token 6. Update function with Page access token 7. Add Facebook Messenger webhook 8. Publish the Facebook App
  12. 12. A bot in minutes with Serverless https://github.com/AlessioCoser /really-simple-facebook-bot
  13. 13. A bot in minutes with Serverless
  14. 14. A bot in minutes with Serverless AWS LAMBDA Free each month: 1 MILLION REQUESTS 400,000 GB-SECONDS $0.20 1 MILLION REQUESTS $0.00001667 EVERY GB-SECOND Github Student Pack 100$ for Free
  15. 15. A bot in minutes with Serverless http://slides.com/pierodibello/lessons-learned-from-aws-lambda http://www.xpeppers.com/blog/2017/01/05/serverless-test-driven-development/ https://medium.com/@martinho_t/serverless-architecture-a1848cab56f4 https://martinfowler.com/articles/serverless.html https://aws.amazon.com/lambda/ https://cloud.google.com/functions/ https://azure.microsoft.com/en-us/services/functions/ https://github.com/jaws-framework/JAWS https://github.com/claudiajs/claudia https://github.com/claudiajs/claudia-bot-builder https://github.com/elit-software/fb-bot https://claudiajs.com/tutorials/hello-world-chatbot.html http://www.slideshare.net/AmazonWebServices/getting-started-with-serverless-arch itectures-63429092
  16. 16. www.xpeppers.com /xpepperssrl@xpeppers

×