Deploying your python backend with (almost) zero cost

Srinivasan R (~srinivasan)


26

Votes

Description:

Gone are the days when you had to provision and maintain servers full time and pay huge costs for it (even though it is idle 99% of the time). The world is going serverless where someone else takes care of running your code automatically whenever you want.

AWS Lambda is one such service which runs your piece of code when an event occurs - could be an HTTP API call, a message put in a queue or a file put in an S3 bucket.

And NO! This isn't the usual cloud servers where you pay for the full hour. You pay in multiples of 100ms intervals of when your code executes and don't even have to pay a dime if no execution occurs.

I will be presenting a real world code with a hands-on demo of how you can easily deploy your python code - be it a simple script to process your log files or handle HTTP API requests to return JSON responses. I would also talk about where you can't use lambdas and also workaround for those use cases.

Going serverless for most of your backend processes will save you lot of money, which is a real differentiator when it comes to pricing your products competitively.

Some of the places where people use AWS Lambdas are:

  • replace most parts of the data pipeline for data munging and pre-processing
  • do basic image manipulation of user uploaded images
  • user activity tracking, metrics generation, log file processing, etc.
  • build backends for IOT devices with data from sensors
  • and even obscure use cases like having your own free commenting system for a static blog.

Prerequisites:

Basic knowledge of python and some web framework would help.

Content URLs:

Presentation

Speaker Info:

I have been programming in python for more than a decade and helped startups to build various text/data analytics products, distributed and scalable systems, built web applications using wide variety of frameworks. Also worked with PostgreSQL, MongoDB, Redis, Cassandra, etc., and making them work scalably. Currently helping bring AI to the common man by scaling it for millions of users and fighting lot of challenges along the way.

I have presented in two of previous Pycon India:

  1. The first ever Pycon India (2009) - about a schema less data store built on top of RDBMS (long before postgres added the JSON data type) [link]
  2. In 2013 Pycon India about building distributed and scalable applications using ZeroMQ [link]

Have also regularly talked in local meetups and organized various hackathons and events related to tech & entrepreneurship.

Speaker Links:

Section: Infrastructure
Type: Talks
Target Audience: Intermediate
Last Updated: