PyCon Hong Kong 2024

PyCon Hong Kong 2024

Taemin Ha

Tae Min Ha is a software engineer across different technology domains. He has experiences with Python application development using REST API frameworks, machine learning operations (MLOps) using cloud automations, containerized deployments, and data mining. He has spent the last four years of his career as a Market Data Engineer with Bloomberg in Hong Kong, primarily owning a variety of market data feed applications across Asian exchanges. He is well versed in programming languages like C++11/14/17 and Python. Tae Min holds a B. Eng. in computer science from the University of Hong Kong.


Country / City

Hong Kong

Company / Organisation

Bloomberg


Session

11-16
17:25
5min
Async all the way: FastAPI and the ASGI era
Taemin Ha

In the rapidly-evolving world of Python web development, the emergence of frameworks like FastAPI has changed how software engineers build highly-performant, asynchronous applications in Python. This lightning talk will explore how the FastAPI framework makes use of the power of an Asynchronous Server Gateway Interface (ASGI) web server to enable concurrent request handling, in contrast with the traditional Web Server Gateway Interface (WSGI) approach.

Through a live demonstration, the differences between WSGI and ASGI applications will be illustrated. Synchronous applications can be blocked by long-running tasks such as I/O operations, whereas asynchronous web servers handle requests concurrently even while the thread is occupied with different tasks.

By showcasing how FastAPI's design allows for concurrent processing of multiple requests without blocking, this talk will highlight the significant performance benefits and scalability advantages provided by ASGI-powered frameworks.

Lightning ⚡
LT9