Member-only story
Making Sense of Big Data
FastAPI + AWS = robust API (Part 1)
Let’s build a scalable serverless Python-based REST API with FastAPI, AWS Lambda, and API Gateway
FastAPI revolutionized the way of developing modern Python-based REST APIs. Since its inception, the project has been adopted by large companies, such as Microsoft, Uber, and Netflix, and it’s increasingly gaining popularity, what we can observe by the number of Github stars growing every day.
Being able to build fast, robust, secure, and scalable APIs is a must-have skill for any backend (data) engineer. In this article, we’ll build a simple REST API that will show the market sentiment and current prices of selected cryptocurrencies in a currency of your choice (euro, dollar, etc.).
We’ll use the top-down approach: from packaging and deploying the API to diving into details on what it is about. In Part 1, we’ll deploy our FastAPI code to AWS by leveraging Amazon Lambda and API Gateway. In the future article (Part 2), we’ll make sure to secure our API by using API keys. We’ll also demonstrate how to enable distributed tracing and logging to track our application’s health. Let’s dive in!
Table of contents:
- Create a Pycharm project with a virtual…