

It also deploys a DynamoDB table to serve as a backend database and makes the whole architecture totally serverless. Serverless framework is used to deploy the Lambda function and expose the API endpoints via API Gateway. Deploy as Serverless to AWS Lambda and API Gateway: In this the Flask App is deployed as a Lambda function.The stack can be deployed to a Docker swarm and the API gets exposed via Nginx endpoint. This is deployed as a stack with other Docker services for Nginx(to serve the API publicly) and Mongo(for backend Database). Deploy to Docker: The API is deployed as a Flask App to a Docker container.

This graphic sums up the overall architecture. You should be able t use either of these to deploy your own API. Both of these paths are widely used in many applications. Both of them are equally useful but the difference is just that one of them follow the Serverless pattern and no servers are needed for that. I will be going through two ways to deploy the Flask REST API. Here I will we describing how you can implement REST API using Python and Flask. There are ways to implement REST API in different coding languages like NodeJS, Flask (Python) and a very common design pattern for modern apps. API gives a way for the client to access the backend data in a secure way. A client web app communicates with the API endpoints to work on some data and then display the data on client side.

Main principle it follows is the client-server pattern. It is a design style to architect systems which follow decoupled patterns. REST is acronym for REpresentational State Transfer.

#Aws local dynamodb connection refused full
The full code base is available on my Github repo: Here Pre-Requisites
