

Zappa is an open-source Python tool created by Rich Jones of Gun.io for developers to create, deploy and manage serverless Python software on API Gateway and AWS Lambda infrastructure. Hence, there is a need for a way to deploy painlessly and also provide a means to debug and also monitor logs in production. Debugging in production environments can be hard too. With all the goodness that we are presented with, deploying serverless applications can be difficult when using frameworks like Django. You can learn about building Chalice applications and APIs in this article. It then went on to release Chalice, a flask-like Python framework for building serverless applications. This concept was heralded by AWS when it open-sourced its Serverless Application Model (SAM) framework. Servers, of course, still exist, but developers and administrators don't need to manage them. Serverless technology was developed from the idea of allowing developers to build and run applications without server management. Lets, assume we set the environment variable SLACK_ORDER_ALERTS_BOT_WEBHOOK_URL with the value of the webhook url we copied.TL DR: In this article, you will see how to build and deploy a serverless Django API with Zappa. This will be the api endpoint at which we will make our http POST request. Now, a new webhook url would be added for this app. Specify the channel at which this bot should post. Lets name our app "Order-Alert-Bot" and choose our slack workspace. This will take you to an external link which will be opened in your browser. This is because, all we need to do is to make a http POST request and we can do that using any language we want. Let's see how we can achieve this easily using the slack API.įor this post, we will assume our back-end is written using a python based web framework like django/flask/fastapi. Suppose, you are in charge of developing a back-end of an E-Commerce website and maybe the the company sales team wants to be notified every time a customer places an order into a specific slack channel.
