Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Dr. Strangelove or: How I learned to stop worry...

Dr. Strangelove or: How I learned to stop worrying and love the serverless chatbots (v2)

Slobodan Stojanović

May 08, 2018
Tweet

More Decks by Slobodan Stojanović

Other Decks in Programming

Transcript

  1. @slobodan_ CTO of Cloud Horizon Co-author of Serverless Apps with

    Node and Claudia.js effortless-serverless.com @slobodan_ Slobodan Stojanović
  2. @slobodan_ OVERVIEW • Chatbots • Serverless • Why do they

    work together well • When and how to use them • Real-world example
  3. @slobodan_ Chatbot (or chatterbot) is a computer program that simulates

    human conversation through voice commands or text chats or both.
  4. @slobodan_ • Turing Test (1950) • Eliza (1966) • Parry

    (1972) • Racter (1983) • A.L.I.C.E. (1995) • Jabberwacky (2005) • Slack Bot and Amazon Alexa (2014) • Telegram and FB Bots (2015) • Many others (2016)
  5. @slobodan_ Serverless computing is a cloud-computing execution model in which

    the cloud provider dynamically manages the allocation of machine resources.
  6. @slobodan_ Pricing is based on the actual amount of resources

    consumed by an application, rather than on pre-purchased units of capacity.
  7. @slobodan_ • Autoscaling • Pay per used capacity • No

    server maintenance • Short time to market • Cheap
  8. @slobodan_ • Timeout up to 300 seconds • 128MB to

    3GB of memory • 500MB of non-persistent storage (/tmp) • Default concurrency limit is 1000 functions
  9. @slobodan_ • $0.20 per 1 million requests • First million

    requests/month are free • $0.00001667 for every GB-second • First 400.000 GB-seconds/month are free
  10. @slobodan_ • Node.js • Python • Java (JVM based languages)

    • Golang • C# • Shell scripts • Any executable AWS Lambda
  11. @slobodan_ • Node.js • C# • F# • Python •

    PHP • Any executable Azure Functions
  12. @slobodan_ • Web APIs • Backend for Single Page Apps

    • IoT • Processing files or any kind of data • Microservices • Quick prototypes that can evolve to production-ready apps • Chatbots
  13. @slobodan_ • Great for startups • Quick chatbot prototypes •

    Stateless bots • Stateful bots (with additional services) • Alexa skills
  14. @slobodan_ https://vacationtrackerbot.com • No user management (login with Slack) •

    Request vacation directly from Slack • Manage requests from Slack or from web based dashboard • Info and config via dashboard
  15. @slobodan_ • Most of the popular messengers support chatbots •

    You can use free NLP/AI platforms, ie. Dialogflow • Serverless is event based and doesn't cost if no-one is using them • Serverless and chatbots work perfectly together • You can use Claudia Bot Builder to build serverless chatbots with AWS Lambda
  16. @slobodan_ • Create an API • Connect it with serverless

    DB • Add authorization • Build a FB chatbot • Build an Alexa skill • Learn how to test and debug • Learn good practices and how to migrate • Read real-world case studies
  17. @slobodan_ Serverless Apps with Node and Claudia.js
 promo code for

    40% off ctwcodeeu18 serverless-book.com @slobodan_ Thanks!