Understanding Serverless Architecture, by Jalem Raj Rohit

Abstract

Serverless software design/architecture is fast becoming the future of cloud computing. Yet, it’s still a confusing concept for a lot of developers [just like Docker. Sorry container enthusiasts].

This talk introduces the concept of serverless architecture to the audience, from the ground up. And then runs them through the process of how exactly would the architecture look like, how the deployment happens, and how it boosts developer productivity.

All the above would be done by actually running the audience through a live example of spinning up a light-weight serverless app (in Python, obviously) for better understanding of the concept.

Objective

The audience will leave with a good understanding of serverless systems and architecture, and also with a knowledge of how to spin up serverless pipelines in AWS.

Detailed description

This is what my team have done while building the serverless architecture:

We wanted to build a serverless data pipeline for coding medical charts using NLP. However, we didn't want it to be real-time (which is most serverless systems). So, we used a queue and a monitoring system's (AWS CloudWatch) alarms to pull off the serverless, batch processing pipeline.

Next, we wanted to make it a serverless, batch, distributed pipeline. So, we made use of Ansible and made the Master-Workers architecture. However, AWS Lambda has a time-limit of 5 minutes. But our entire NLP pipeline flow takes 30 minutes to complete.

So, we stumbled upon an idea wherein we create a Master server via Lambda and run Ansible in nohup mode. And then, we learned some very important lessons while doing nohup monitoring.

Now, we realized that Ansible can terminate the workers once the tasks are completed, but we want to delete the master also. So, we again built the Ansible playbook such that the Master kills itself once the workers are terminated.

Also, we built a serverless API for querying the results of the data-pipeline, using AWS Lambda and API Gateway. And, all this have to be built keeping in mind the HIPAA compliance, which means that the data needs to be encrypted both at rest, and in motion.

So, along the way of building this complete architecture, we experienced a lot of gotcha moments, failures, huge wins and pitfalls which taught us very important lessons. This talk would very briefly explain those bullet-points after the hands-on demo.

This talk would include a quick spin up of a simpler serverless Lambda function in AWS [hands-on], and explain the concept of serverless, and the gotchas and pitfalls to keep in mind while opting for a serverless architecture

Edit proposal

Submissions

Pycon Taiwan 2017 - Accepted [Edit]

Add submission