Building scalable microservices using FastAPI.

ABY M JOSEPH (~aby)


5

Votes

Description:

FastAPI is a Python web framework built on top of the ASGI (Asynchronous Server Gateway Interface) standard. It is designed to be fast, easy to use, and scalable, making it an ideal choice for building microservices.It allows for the asynchronous handling of incoming requests and can handle multiple requests concurrently. FastAPI makes it easy to build Restful APIs by providing built-in support for common Restful API operations. FastAPI also supports GraphQL federated APIs, which allow you to build a unified API from multiple microservices. With GraphQL federated APIs, you can define a schema that aggregates data from multiple services and returns it as a single response. To build microservices with FastAPI, you can create separate modules for each service, each with its own API endpoint. Each module can then be deployed as a separate service, allowing for greater scalability and flexibility.

Workshop Highlights: - Basics of Fast API & microservices - Developing a Fast API service for serving both Restful & GraphQL API - Deploying the microservice in docker.

Overall, using FastAPI to build microservices for Restful and GraphQL federated APIs provides a fast, easy-to-use, and scalable solution for building complex applications. With its built-in support for asynchronous handling of requests and its support for both Restful and GraphQL APIs, FastAPI is an ideal choice for building microservices in Python.

Prerequisites:

Basic Web API knowledge

Content URLs:

Introduction (15 min) - Workshop overview and FastAPI's advantages. - Asynchronous programming introduction.

Session 1: FastAPI & Microservices Basics (45 min) - FastAPI Intro: Features and async design. (15 min) - Microservices Architecture: Benefits and use cases. (15 min) - Designing Microservices: Modular structure, communication. (15 min)

Hands-on: FastAPI Development (60 min) - Setting up: FastAPI, Docker. (15 min) - Restful API: Async handling, validation. (20 min) - GraphQL Federated API: Data unification. (25 min)

Session 2: Docker Deployment (45 min) - Docker Intro: Simplified deployment. (15 min) - Dockerizing FastAPI Microservices: Images, Dockerfiles. (20 min) - Docker Compose: Multi-container management. (10 min)

Hands-on: Docker Deployment (45 min) - Deploying Microservices: Docker. (20 min) - Managing with Docker Compose: Scaling, balancing. (15 min)

Q&A (15 min)

Speaker Info:

Aby is a Product Engineer at UST working in the travel domain. With a keen eye for detail and a desire to improve, he is currently exploring more on the Python microservices and the GraphQL ecosystem.

Aby also has experience in resolving various business problems by combining purpose-led research and digital technology innovation with rapid prototyping.

Speaker Links:

Linkedin

EuroPython '23

Section: Web & App development
Type: Workshops
Target Audience: Intermediate
Last Updated: