Serverless is the new cool kid. Well, might not be “new” new, but considering that still the majority of web applications are monolithic…
Serverless is the new cool kid. Well, might not be “new” new, but considering that still the majority of web applications are monolithic and quite a few (compared to serverless) are micro-services, its still quite a mysterious technology which often either overlooked or overdone. Some companies are migrating some of their more “_serverlessish_” functions to cloud as serverless functions, and the use cases are becoming more and more evident in the technology business.
This particular post will be not on the basics of serverless concepts nor any of the tools used here. But I will be brushing on the usability of each of these services and how together these can make a match made in heaven.
Well, first you need the Python Flask application itself. So let’s create a very simple Flask app.
First, it’s advisable (or rather necessary) to have the virtual environment setup. So, this assumes that it’s installed. if not just run;
pip install virtualenv
navigate to the project directory.
virtualenv some_env source some_env/bin/activate
once, the virtual environment is created and you have sourced to it. Install necessary pip libraries in the environment. What you will need essentially is only Flask for this tutorial, but it does not matter what are the other libraries you will be using if you have them in the requirements list file (ie. requirements.txt).
Cloud Computing is where the market is migrating. Therefore, we’re here to build an application by leveraging the power of cloud services and see how efficiently we can monitor it.
Serverless Express enables you to easily host Express.js APIs on AWS Lambda and AWS HTTP API. Here is how to get started and deliver a Serverless Express.js based API with a custom domain, free SSL certificate and much more!
Step-by-Step Tutorial: Scheduling your Python Script with AWS Lambda
Modernizing web application development and deployment. Let's describe a phase 1 AWS architecture including Github, API Gateway, and AWS Lamba python functions. This represents an initial tutorial exposing developers to the AWS cloud adoption learning curve. Outline:
Serverless APIs with Python, AWS Lambda & API Gateway