Загрузка...

21 Uvicorn and ASGI: Real-Time Python Apps with WebSockets PYTH 5.02

All the code used in this video is free and downloadable at https://industry-python.thinkific.com - Free registration required.

Overview of Python Flet fullstack architecture.

In this video, we explain why modern Python web applications increasingly use ASGI and Uvicorn, especially for real-time, high-concurrency systems.

Rather than focusing on scaling or performance tuning, this lesson is about understanding the architecture behind a real, production-capable Python stack and how the pieces fit together.

Topics covered in this video:

The difference between WSGI (synchronous) and ASGI (asynchronous)

Why ASGI has become the standard for modern Python applications

What Uvicorn is and why it is widely used in production

How Uvicorn supports:

Async I/O

High concurrency

WebSockets and HTTP

Why Uvicorn is used by FastAPI, Starlette, and Flet

How real-time communication works with WebSockets

Why real-time apps require a persistent server (and won’t run on free serverless tiers)

How the front end, transport layer, and back end communicate

Where application state lives in this project

How databases and LLM APIs can be added later without changing the core structure

Architecture overview:

Front end: Browser-based UI rendered using Flutter Web (via Flet)

Transport layer: WebSockets + HTTP for real-time communication

Back end: Python application running on Uvicorn (ASGI)

State: Currently stored in-memory for simplicity

Deployment: Running on Fly.io with a persistent runtime

This video is intentionally concept-focused. We are not building a large or highly scalable system, but we are using the same tools that power production systems at major companies.

The goal is to help you understand:

How real-time Python web apps work

Why asynchronous servers matter

How user interactions flow from the browser to the back end and back again

Once you understand this structure, you can extend it with databases, external APIs, or LLM integrations without changing the fundamental architecture.

This lesson is part of a broader series on modern Python full-stack development and deployment.

Видео 21 Uvicorn and ASGI: Real-Time Python Apps with WebSockets PYTH 5.02 канала Oppkey
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять