5

Building Asynchronous Transactions

After rigorous discussion on the core components and advanced features of the Flask 3.0 framework, this chapter will explore Flask’s capability to manage requests and responses asynchronously and its ability to execute asynchronous services and repository transactions.

Flask was originally a standard Python framework that ran on the Web Server Gateway Interface (WSGI)-based platform popular in managing blocking processes. But Flask 3.0 supports the creation and execution of non-blocking view and API functions. It can run transactions using some asyncio utilities and build asynchronous repository transactions with SQLAlchemy 2.x.

This chapter will also explore other avenues that help provide Flask applications ...

Get Mastering Flask Web and API Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.