Advertisement

Case Study: Building a Serverless Messenger Chatbot

  • Jyri LehväEmail author
  • Niko Mäkitalo
  • Tommi Mikkonen
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 10544)

Abstract

Major chat platforms, such as Facebook Messenger, have recently added support for chatbots, thus making chatbots more accessible for the end users. This paper presents a case study on building and designing a Messenger chatbot for a media company. The chatbot uses a Serverless Microservice architecture which was implemented using Amazon Web Services (AWS) including API Gateway, Lambda, DynamoDB, SNS and CloudWatch. The paper presents the architecture and reports the findings regarding the design and the final implementation. These findings are also compared to other recent studies around the same emerging topic.

Keywords

Chatbot Internet Bot Serverless computing Microservices AWS AWS Lambda Facebook Messenger 

Notes

Acknowledgements

The research was supported by the Academy of Finland (project 295913).

References

  1. 1.
    Amazon API Gateway. https://aws.amazon.com/api-gateway/. Accessed 9 April 2017
  2. 2.
    Amazon Cloudwatch. https://aws.amazon.com/cloudwatch/. Accessed 9 April 2017
  3. 3.
    Amazon DynamoDB. https://aws.amazon.com/dynamodb/. Accessed 9 April 2017
  4. 4.
    Amazon Simple Notification Service (SNS). https://aws.amazon.com/sns/. Accessed 10 April 2017
  5. 5.
    Amazon Web Services. https://aws.amazon.com/. Accessed 5 April 2017
  6. 6.
    AWS lambda. https://aws.amazon.com/lambda/. Accessed 10 April 2017
  7. 7.
    Facebook Messenger Platform. https://messengerplatform.fb.com/. Accessed 5 April 2017
  8. 8.
    The Serverless Application Framework. https://serverless.com/. Accessed 5 April 2017
  9. 9.
    Eivy, A.: Be wary of the economics of “serverless” cloud computing. IEEE Cloud Comput. 4(2), 6–12 (2017)CrossRefGoogle Scholar
  10. 10.
    Hendrickson, S., Sturdevant, S., Harter, T., Venkataramani, V., Arpaci-Dusseau, A.C., Arpaci-Dusseau, R.H.: Serverless computation with openLambda. In: Proceedings of the 8th USENIX Conference on Hot Topics in Cloud Computing, HotCloud 2016, pp. 33–39, Berkeley. USENIX Association (2016)Google Scholar
  11. 11.
    Pautasso, C., Zimmermann, O., Amundsen, M., Lewis, J., Josuttis, N.: Microservices in practice, part 1: reality check and service design. IEEE Softw. 34(1), 91–98 (2017)CrossRefGoogle Scholar
  12. 12.
    Pautasso, C., Zimmermann, O., Amundsen, M., Lewis, J., Josuttis, N.: Microservices in practice, part 2: service integration and sustainability. IEEE Softw. 34(2), 97–104 (2017)CrossRefGoogle Scholar
  13. 13.
    Roberts, M.: Serverless Architectures. https://martinfowler.com/articles/serverless.html. Accessed 9 April 2017
  14. 14.
    Taivalsaari, A., Mikkonen, T., Systä, K.: Liquid software manifesto: The era of multiple device ownership and its implications for software architecture. In: 2014 IEEE 38th Annual Computer Software and Applications Conference, pp. 338–343, July 2014Google Scholar
  15. 15.
    Thönes, J.: Microservices. IEEE Softw. 32(1), 116–116 (2015)CrossRefGoogle Scholar
  16. 16.
    Villamizar, M., Garces, O., Ochoa, L., Castro, H.E., Salamanca, L., Verano, M., Casallas, R., Gil, S., Valencia, C., Zambrano, A., Lang, M.: Infrastructure cost comparison of running web applications in the cloud using AWS Lambda and monolithic and microservice architectures. In: 2016 16th IEEE/ACM International Symposium on Cluster, Cloud and Grid Computing (CCGrid) (2016)Google Scholar
  17. 17.
    Yan, M., Castro, P., Cheng, P., Ishakian, V.: Building a chatbot with serverless computing. In: Proceedings of the 1st International Workshop on Mashups of Things and APIs, p. 5. ACM (2016)Google Scholar
  18. 18.
    Yao, M.: Does conversation hurt or help the Chatbot Ux? Smashing Magazine, Nov 2016Google Scholar

Copyright information

© Springer International Publishing AG 2018

Authors and Affiliations

  1. 1.Department of Computer ScienceUniversity of HelsinkiHelsinkiFinland

Personalised recommendations