# ASGI

ASGI (Asynchronous Server Gateway Interface) is a standard interface for async-capable Python web servers, frameworks, and applications.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Muru

DevFeed: [Muru](<https://devfeed.tech/articles/muru-147692.md>)

Original publisher: [Read original article](<https://simonwillison.net/2026/Nov/21/muru/>)

Author: Simon Willison

Published: 2026-11-21T23:56:28Z

Content type: article

Language: en

Sources: [Simon Willison's Weblog](<https://devfeed.tech/sources/simon-willison-s-weblog.md>)

Topics: [ASGI](<https://devfeed.tech/topics/asgi.md>), [Python](<https://devfeed.tech/topics/python.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-2-334](<https://devfeed.tech/tags/ai-2-334.md>), [ai-assisted-programming](<https://devfeed.tech/tags/ai-assisted-programming.md>), [ai-assisted-programming-409](<https://devfeed.tech/tags/ai-assisted-programming-409.md>), [asgi](<https://devfeed.tech/tags/asgi.md>), [asgi-23](<https://devfeed.tech/tags/asgi-23.md>), [generative-ai](<https://devfeed.tech/tags/generative-ai.md>), [generative-ai-2-072](<https://devfeed.tech/tags/generative-ai-2-072.md>), [graham-dumpleton](<https://devfeed.tech/tags/graham-dumpleton.md>), [graham-dumpleton-7](<https://devfeed.tech/tags/graham-dumpleton-7.md>), [llms](<https://devfeed.tech/tags/llms.md>), [llms-2-036](<https://devfeed.tech/tags/llms-2-036.md>), [modwsgi](<https://devfeed.tech/tags/modwsgi.md>), [modwsgi-14](<https://devfeed.tech/tags/modwsgi-14.md>), [production](<https://devfeed.tech/tags/production.md>), [python](<https://devfeed.tech/tags/python.md>), [python-1-296](<https://devfeed.tech/tags/python-1-296.md>), [rust](<https://devfeed.tech/tags/rust.md>), [rust-119](<https://devfeed.tech/tags/rust-119.md>), [wsgi](<https://devfeed.tech/tags/wsgi.md>), [wsgi-29](<https://devfeed.tech/tags/wsgi-29.md>)

### AI overview

Muru is Graham Dumpleton's AI-assisted Rust server for running Python ASGI and WSGI applications in development and production, informed by his 20 years of experience with mod_wsgi. In a series of posts published over three weeks, he describes its workers and architecture, importing once and forking many, development HTTPS, serving WSGI and ASGI together, releasing without restarts, canary deployments, containers and Kubernetes, scaling--including to zero--scheduled overlays, monitoring, and toolbar tracing. Dumpleton says AI does much of the visible work, while judging what is good enough and continuing to polish the server remain his responsibility. The supplied text summarizes the project and lists post titles; it does not provide implementation details for those features.

### Source excerpt

Muru Graham Dumpleton started mod_wsgi 20 years ago, and has been thinking about the ideal way to serve Python web applications in production ever since. Muru is his new, AI-assisted Rust server that aims to provide the best possible tools for running ASGI and WSGI Python apps both in development and production. As he did with wrapture, he's been publishing an extraordinarily detailed account of the project as he works on it - as part of his development process. Here's everything he's published so far, all in the last three weeks: 2026-11-04 -- Twenty years of mod_wsgi, and what comes next 2026-11-05 -- A first look at Muru 2026-11-07 -- Muru: looking inside the workers 2026-11-08 -- Muru: how it fits together 2026-11-09 -- Muru: import once, fork many 2026-11-10 -- Muru: HTTPS in development 2026-11-11 -- Muru: WSGI and ASGI together 2026-11-11 -- AI as a lifestyle choice 2026-11-12 -- Muru: releases, not restarts 2026-11-13 -- Muru: canaries without a service mesh 2026-11-14 -- Muru: a better tenant in a container 2026-11-15 -- Muru: working with Kubernetes, not around it 2026-11-16 -- Muru: scaling from what the workers report 2026-11-17 -- Muru: scaling to zero 2026-11-18 -- Muru: overlays on a schedule 2026-11-19 -- Muru: noticing and responding 2026-11-20 -- Muru: a toolbar on every page 2026-11-21 -- Muru: tracing in the toolbar That post about AI as a lifestyle choice is particularly worth a read: The AI may be doing a lot of the work on the surface, but deciding what isn't good enough yet is still down to me, and twenty years of getting things wrong with mod_wsgi turns out to be useful for that. I am prepared to put in the hard work to keep polishing Muru until it is something I would trust, and something you would too. Tags: graham-dumpleton, modwsgi, python, wsgi, ai, rust, asgi, generative-ai, llms, ai-assisted-programming

## Routing Middleware now supports Python

DevFeed: [Routing Middleware now supports Python](<https://devfeed.tech/articles/routing-middleware-now-supports-python-92975.md>)

Original publisher: [Read original article](<https://vercel.com/changelog/routing-middleware-now-supports-python>)

Author: Daniel Park

Published: 2026-10-21T16:36:23.454672Z

Content type: release

Language: en

Sources: [Vercel News](<https://devfeed.tech/sources/vercel-news.md>)

Topics: [middleware](<https://devfeed.tech/topics/middleware.md>), [Python](<https://devfeed.tech/topics/python.md>), [ASGI](<https://devfeed.tech/topics/asgi.md>), [Django](<https://devfeed.tech/topics/django.md>), [FastAPI](<https://devfeed.tech/topics/fastapi.md>)

Tags: [app](<https://devfeed.tech/tags/app.md>), [dependency](<https://devfeed.tech/tags/dependency.md>), [django](<https://devfeed.tech/tags/django.md>), [fastapi](<https://devfeed.tech/tags/fastapi.md>), [flask](<https://devfeed.tech/tags/flask.md>), [frameworks](<https://devfeed.tech/tags/frameworks.md>), [middleware](<https://devfeed.tech/tags/middleware.md>), [package](<https://devfeed.tech/tags/package.md>), [packages](<https://devfeed.tech/tags/packages.md>), [proxy](<https://devfeed.tech/tags/proxy.md>), [python](<https://devfeed.tech/tags/python.md>), [redirect](<https://devfeed.tech/tags/redirect.md>), [rewrite](<https://devfeed.tech/tags/rewrite.md>), [route](<https://devfeed.tech/tags/route.md>), [routing](<https://devfeed.tech/tags/routing.md>), [utilities](<https://devfeed.tech/tags/utilities.md>), [uv](<https://devfeed.tech/tags/uv.md>), [vercel](<https://devfeed.tech/tags/vercel.md>)

### AI overview

Python routing middleware runs before the main app and can rewrite, redirect, or answer requests. Configure the `proxy` entrypoint in `vercel.toml` to point to an ASGI or WSGI app that runs separately, and put its imported packages in the `vercel.proxy` dependency group in `pyproject.toml` (for example, install `vercel-proxy` with `uv add --group vercel.proxy vercel-proxy`). The package includes a `Proxy` app for path-based routing; handlers can, for example, redirect a legacy blog path or continue an API request with an added header. Requests without a matching route continue to the main app unchanged.

### Source excerpt

You can now write routing middleware in Python for FastAPI, Flask, Django, and other Python frameworks. It runs before requests reach your app, and can rewrite, redirect, or answer them. To set it up, point the proxy entrypoint in vercel.toml at your proxy: Your middleware is an ASGI or WSGI app that runs separately from your main app, with only the packages in the vercel.proxy dependency group of your pyproject.toml. Add the packages your middleware imports to that group: The vercel-proxy package provides utilities for writing routing middleware on Vercel, including a Proxy app that routes requests by path: Requests that match no route continue to your app unchanged. For more information, see the Routing Middleware Python reference. Read more

## Python Workers Reach GA on Cloudflare, with Questions About Cold Starts and Upstream Maintenance

DevFeed: [Python Workers Reach GA on Cloudflare, with Questions About Cold Starts and Upstream Maintenance](<https://devfeed.tech/articles/python-workers-reach-ga-on-cloudflare-with-questions-about-cold-starts-and-upstream-maintenance-61643.md>)

Original publisher: [Read original article](<https://www.infoq.com/news/2026/09/cloudflare-python-workers-ga/>)

Author: Steef-Jan Wiggers

Published: 2026-09-29T06:33:00Z

Content type: news

Language: en

Sources: [InfoQ](<https://devfeed.tech/sources/infoq.md>)

Topics: [Cloudflare Workers](<https://devfeed.tech/topics/cloudflare-workers.md>), [Python](<https://devfeed.tech/topics/python.md>), [ASGI](<https://devfeed.tech/topics/asgi.md>), [AWS Glue](<https://devfeed.tech/topics/aws-glue.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [architecture-design](<https://devfeed.tech/tags/architecture-design.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [cloudflare](<https://devfeed.tech/tags/cloudflare.md>), [cloudflare-python-workers-ga](<https://devfeed.tech/tags/cloudflare-python-workers-ga.md>), [connectors](<https://devfeed.tech/tags/connectors.md>), [developer-experience](<https://devfeed.tech/tags/developer-experience.md>), [development](<https://devfeed.tech/tags/development.md>), [devops](<https://devfeed.tech/tags/devops.md>), [drivers](<https://devfeed.tech/tags/drivers.md>), [hacker-news](<https://devfeed.tech/tags/hacker-news.md>), [news](<https://devfeed.tech/tags/news.md>), [python](<https://devfeed.tech/tags/python.md>), [serverless](<https://devfeed.tech/tags/serverless.md>), [webassembly](<https://devfeed.tech/tags/webassembly.md>), [workers](<https://devfeed.tech/tags/workers.md>)

### AI overview

Cloudflare made Python Workers generally available, adding Python to its Developer Platform alongside JavaScript and TypeScript. The report describes packaging support for Python extensions compiled to WebAssembly, socket syscalls implemented over the Workers connect API, and upstream HTTP client changes that enable libraries such as requests and httpx. It also notes concerns about ongoing upstream maintenance and the absence of performance figures, including cold-start measurements.

### Source excerpt

Cloudflare has made Python Workers generally available, built on PEP 783 and on socket syscalls implemented over the Workers connect API. The announcement carries no performance figures. A urllib3 maintainer questioned who supports the upstream work afterwards, and Wasmer's founder asked for cold-start numbers, citing about 1.027 seconds from Cloudflare's own earlier post. By Steef-Jan Wiggers

## Building ASGI Microservices with Cloudflare Python Workers in Production

DevFeed: [Building ASGI Microservices with Cloudflare Python Workers in Production](<https://devfeed.tech/articles/building-asgi-microservices-with-cloudflare-python-workers-in-production-58324.md>)

Original publisher: [Read original article](<https://www.sitepoint.com/asgi-microservices-on-cloudflare-python-workers/>)

Author: SitePoint Team

Published: 2026-09-22T19:08:57Z

Content type: tutorial

Language: en

Sources: [SitePoint](<https://devfeed.tech/sources/sitepoint.md>)

Topics: [ASGI](<https://devfeed.tech/topics/asgi.md>), [Cloudflare Workers](<https://devfeed.tech/topics/cloudflare-workers.md>), [Microservices](<https://devfeed.tech/topics/microservices.md>), [Python](<https://devfeed.tech/topics/python.md>), [FastAPI](<https://devfeed.tech/topics/fastapi.md>), [async](<https://devfeed.tech/topics/async.md>), [Starlette](<https://devfeed.tech/topics/starlette.md>), [WebAssembly](<https://devfeed.tech/topics/web-assembly.md>), [API](<https://devfeed.tech/topics/api.md>), [Serverless](<https://devfeed.tech/topics/serverless.md>), [V8](<https://devfeed.tech/topics/v8.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [async](<https://devfeed.tech/tags/async.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [cloudflare](<https://devfeed.tech/tags/cloudflare.md>), [cloudflare-workers](<https://devfeed.tech/tags/cloudflare-workers.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [edge](<https://devfeed.tech/tags/edge.md>), [fastapi](<https://devfeed.tech/tags/fastapi.md>), [microservices](<https://devfeed.tech/tags/microservices.md>), [programming](<https://devfeed.tech/tags/programming.md>), [pyodide](<https://devfeed.tech/tags/pyodide.md>), [python](<https://devfeed.tech/tags/python.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [starlette](<https://devfeed.tech/tags/starlette.md>), [web](<https://devfeed.tech/tags/web.md>), [workers](<https://devfeed.tech/tags/workers.md>)

### AI overview

A practical guide to deploying production ASGI microservices built with Python frameworks such as FastAPI and Starlette on Cloudflare Workers. It covers edge execution, authenticated fan-out, Workers KV caching, global deployment, and cold-start optimization.

### Source excerpt

Deploy a Python ASGI microservice on Cloudflare Workers: Pyodide cold-start mitigation, async subrequest handling, and KV-backed state caching. Continue reading Building ASGI Microservices with Cloudflare Python Workers in Production on SitePoint.

## Django: introducing django-mcpz, for making MCP servers

DevFeed: [Django: introducing django-mcpz, for making MCP servers](<https://devfeed.tech/articles/django-introducing-django-mcpz-for-making-mcp-servers-51102.md>)

Original publisher: [Read original article](<https://adamj.eu/tech/2026/09/15/introducing-django-mcpz/>)

Author: Adam Johnson

Published: 2026-09-14T23:00:00Z

Content type: release

Language: en

Sources: [Adam Johnson](<https://devfeed.tech/sources/adam-johnson.md>)

Topics: [Django](<https://devfeed.tech/topics/django.md>), [Model Context Protocol](<https://devfeed.tech/topics/model-context-protocol.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [API](<https://devfeed.tech/topics/api.md>), [ASGI](<https://devfeed.tech/topics/asgi.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [JSON](<https://devfeed.tech/topics/json.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [apis](<https://devfeed.tech/tags/apis.md>), [data](<https://devfeed.tech/tags/data.md>), [django](<https://devfeed.tech/tags/django.md>), [http](<https://devfeed.tech/tags/http.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [json](<https://devfeed.tech/tags/json.md>), [llms](<https://devfeed.tech/tags/llms.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [mcp-servers](<https://devfeed.tech/tags/mcp-servers.md>), [server-sent-events](<https://devfeed.tech/tags/server-sent-events.md>), [sessions](<https://devfeed.tech/tags/sessions.md>)

### AI overview

This release introduces django-mcpz, a Django package for building Model Context Protocol servers. It targets MCP's stateless HTTP transport, allowing servers to run in a synchronous Django view within a normal WSGI deployment without additional infrastructure, while retaining compatibility with earlier stateless MCP versions.

### Source excerpt

I made another package! Say hello to django-mcpz, for building Model Context Protocol (MCP) servers in your Django project. The package tagline is easy peasy MCP servers in Django. MCP, the place to be? MCP specifies a way for LLMs to interact with external data sources. MCP servers can expose ...

## A Starlette middleware guide for FastAPI and Python developers

DevFeed: [A Starlette middleware guide for FastAPI and Python developers](<https://devfeed.tech/articles/a-starlette-middleware-guide-for-fastapi-and-python-developers-20057.md>)

Original publisher: [Read original article](<https://www.honeybadger.io/blog/starlette-middleware/>)

Author: Aditya Raj

Published: 2026-08-28T07:00:00Z

Content type: article

Language: en

Sources: [Honeybadger](<https://devfeed.tech/sources/honeybadger.md>)

Topics: [Starlette](<https://devfeed.tech/topics/starlette.md>), [FastAPI](<https://devfeed.tech/topics/fastapi.md>), [Web app](<https://devfeed.tech/topics/webapp.md>), [ASGI](<https://devfeed.tech/topics/asgi.md>)

Tags: [auth](<https://devfeed.tech/tags/auth.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [cors](<https://devfeed.tech/tags/cors.md>), [distributed-tracing](<https://devfeed.tech/tags/distributed-tracing.md>), [fastapi](<https://devfeed.tech/tags/fastapi.md>), [guide](<https://devfeed.tech/tags/guide.md>), [logging](<https://devfeed.tech/tags/logging.md>), [middleware](<https://devfeed.tech/tags/middleware.md>), [python](<https://devfeed.tech/tags/python.md>), [python-articles](<https://devfeed.tech/tags/python-articles.md>), [route](<https://devfeed.tech/tags/route.md>), [starlette](<https://devfeed.tech/tags/starlette.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

Starlette middleware wraps the application so shared tasks such as logging, authentication, monitoring, and request filtering can run across routes without duplicating code in handlers. Middleware intercepts incoming requests before they reach a route (or the next middleware) and can inspect or modify them; it can also inspect or modify responses on their way back to the ASGI server. The excerpt gives examples of layers filtering disallowed sources or non-HTTPS requests, authenticating users, and measuring processing time. It does not provide the promised built-in middleware configurations, custom middleware implementations, or execution-order rules.

### Source excerpt

Starlette middlewares let you apply logging, auth, and CORS across every route in a web app without duplicating code. This article covers Starlette's built-in middlewares, building custom ones with pure ASGI and BaseHTTPMiddleware, and the execution-order rules that keep your FastAPI applications secure and fast. Read on to learn how to build and order Starlette middlewares the right way.

## WebSocket support is now available for Python Functions

DevFeed: [WebSocket support is now available for Python Functions](<https://devfeed.tech/articles/websocket-support-is-now-available-for-python-functions-1198.md>)

Original publisher: [Read original article](<https://vercel.com/changelog/websocket-support-is-now-available-for-python-functions>)

Author: Ricardo Gonzalez

Published: 2026-07-23T00:00:00Z

Content type: release

Language: en

Sources: [Vercel News](<https://devfeed.tech/sources/vercel-news.md>)

Topics: [WebSocket](<https://devfeed.tech/topics/websocket.md>), [Python](<https://devfeed.tech/topics/python.md>), [Vercel](<https://devfeed.tech/topics/vercel.md>), [ASGI](<https://devfeed.tech/topics/asgi.md>), [FastAPI](<https://devfeed.tech/topics/fastapi.md>), [real-time](<https://devfeed.tech/topics/real-time.md>), [Django](<https://devfeed.tech/topics/django.md>), [Flask](<https://devfeed.tech/topics/flask.md>), [Streaming](<https://devfeed.tech/topics/streaming.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [client](<https://devfeed.tech/topics/client.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [applications](<https://devfeed.tech/tags/applications.md>), [code](<https://devfeed.tech/tags/code.md>), [collaboration](<https://devfeed.tech/tags/collaboration.md>), [communication](<https://devfeed.tech/tags/communication.md>), [django](<https://devfeed.tech/tags/django.md>), [examples](<https://devfeed.tech/tags/examples.md>), [features](<https://devfeed.tech/tags/features.md>), [flask](<https://devfeed.tech/tags/flask.md>), [frameworks](<https://devfeed.tech/tags/frameworks.md>), [python](<https://devfeed.tech/tags/python.md>), [real-time](<https://devfeed.tech/tags/real-time.md>), [server](<https://devfeed.tech/tags/server.md>), [streaming](<https://devfeed.tech/tags/streaming.md>), [vercel](<https://devfeed.tech/tags/vercel.md>)

### AI overview

Vercel has added WebSocket support for Python applications and Functions. The feature supports bidirectional client-server communication for real-time use cases such as interactive AI streaming, chat, and multiplayer collaboration, with compatibility for ASGI and WSGI applications including FastAPI, Django, and Flask.

### Source excerpt

Vercel now supports WebSocket connections for Python applications. WebSockets enable bidirectional communication between client- and server-side code, powering real-time features like interactive AI streaming, real-time chat, and multiplayer live collaboration. Both ASGI and WSGI applications are supported, including frameworks like FastAPI, Django, and Flask. Explore the FastAPI AI Chat and Flask AI Chat examples, or read the WebSockets documentation to get started. Read more

## Starlette vs FastAPI: what FastAPI actually adds

DevFeed: [Starlette vs FastAPI: what FastAPI actually adds](<https://devfeed.tech/articles/starlette-vs-fastapi-what-fastapi-actually-adds-20058.md>)

Original publisher: [Read original article](<https://www.honeybadger.io/blog/starlette-vs-fastapi/>)

Author: Farhan Hasin Chowdhury

Published: 2026-07-20T07:00:00Z

Content type: article

Language: en

Sources: [Honeybadger](<https://devfeed.tech/sources/honeybadger.md>)

Topics: [FastAPI](<https://devfeed.tech/topics/fastapi.md>), [Starlette](<https://devfeed.tech/topics/starlette.md>), [Pydantic](<https://devfeed.tech/topics/pydantic.md>), [ASGI](<https://devfeed.tech/topics/asgi.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>)

Tags: [application](<https://devfeed.tech/tags/application.md>), [article](<https://devfeed.tech/tags/article.md>), [async](<https://devfeed.tech/tags/async.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [automatic](<https://devfeed.tech/tags/automatic.md>), [background](<https://devfeed.tech/tags/background.md>), [better](<https://devfeed.tech/tags/better.md>), [body](<https://devfeed.tech/tags/body.md>), [build](<https://devfeed.tech/tags/build.md>), [built-in](<https://devfeed.tech/tags/built-in.md>), [cases](<https://devfeed.tech/tags/cases.md>), [choice](<https://devfeed.tech/tags/choice.md>), [fastapi](<https://devfeed.tech/tags/fastapi.md>), [full-stack](<https://devfeed.tech/tags/full-stack.md>), [learn](<https://devfeed.tech/tags/learn.md>), [pydantic](<https://devfeed.tech/tags/pydantic.md>), [python](<https://devfeed.tech/tags/python.md>), [python-articles](<https://devfeed.tech/tags/python-articles.md>), [raw](<https://devfeed.tech/tags/raw.md>), [stack](<https://devfeed.tech/tags/stack.md>), [starlette](<https://devfeed.tech/tags/starlette.md>), [vs](<https://devfeed.tech/tags/vs.md>)

### AI overview

Starlette provides the ASGI web toolkit: routing, HTTP and WebSocket handling, middleware, background tasks, sessions, and testing support. Pydantic supplies typed data parsing, validation, serialization, and JSON Schema generation. FastAPI connects them by reading endpoint function type hints, adding parameter parsing and dependency injection, and generating OpenAPI documentation. The excerpt frames the choice as whether those higher-level conveniences are useful; it ends as the comparison begins, so it does not provide specific cases for choosing raw Starlette.

### Source excerpt

FastAPI is built on Starlette, but most developers never look at what's underneath. Learn what FastAPI actually adds on top of Starlette and Pydantic, what comes straight from Starlette, and when dropping down to raw Starlette makes more sense than pulling in the full stack.

## How to secure Python Flask applications

DevFeed: [How to secure Python Flask applications](<https://devfeed.tech/articles/how-to-secure-python-flask-applications-8079.md>)

Original publisher: [Read original article](<https://snyk.io/blog/secure-python-flask-applications/>)

Author: Gourav Singh Bais

Published: 2024-05-21T05:00:00Z

Content type: article

Language: en

Sources: [Snyk](<https://devfeed.tech/sources/blog-rss-feed-snyk.md>)

Topics: [Flask](<https://devfeed.tech/topics/flask.md>), [Python](<https://devfeed.tech/topics/python.md>), [Web app](<https://devfeed.tech/topics/webapp.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>), [ASGI](<https://devfeed.tech/topics/asgi.md>), [Security](<https://devfeed.tech/topics/security.md>)

Tags: [acquisition](<https://devfeed.tech/tags/acquisition.md>), [application-security](<https://devfeed.tech/tags/application-security.md>), [article](<https://devfeed.tech/tags/article.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [blog](<https://devfeed.tech/tags/blog.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [developer](<https://devfeed.tech/tags/developer.md>), [draftdotdev](<https://devfeed.tech/tags/draftdotdev.md>), [flask](<https://devfeed.tech/tags/flask.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [open-source-security](<https://devfeed.tech/tags/open-source-security.md>), [python](<https://devfeed.tech/tags/python.md>), [security-vulnerabilities](<https://devfeed.tech/tags/security-vulnerabilities.md>), [snyk-code](<https://devfeed.tech/tags/snyk-code.md>), [snyk-open-source](<https://devfeed.tech/tags/snyk-open-source.md>), [web](<https://devfeed.tech/tags/web.md>), [web-applications](<https://devfeed.tech/tags/web-applications.md>)

### AI overview

This article explains how to secure Python Flask applications. It introduces Flask and the WSGI standard, identifies common risks such as XSS, CSRF, and SQL injection, and presents insecure configuration examples alongside practices for mitigating security issues.

### Source excerpt

In this article, you'll learn about some best practices related to securing Python applications built with the Flask web application framework. You'll start by looking at some insecure configuration examples and then learn how to mitigate and fix any issues.

## Lambda on hard mode: Inside Modal's web infrastructure

DevFeed: [Lambda on hard mode: Inside Modal's web infrastructure](<https://devfeed.tech/articles/lambda-on-hard-mode-inside-modal-s-web-infrastructure-79940.md>)

Original publisher: [Read original article](<https://modal.com/blog/serverless-http>)

Author: Eric Zhang

Published: 2024-03-14T12:00:00Z

Content type: article

Language: en

Sources: [Modal](<https://devfeed.tech/sources/modal.md>)

Topics: [Serverless](<https://devfeed.tech/topics/serverless.md>), [WebSocket](<https://devfeed.tech/topics/websocket.md>), [ASGI](<https://devfeed.tech/topics/asgi.md>), [Back end](<https://devfeed.tech/topics/backend.md>)

Tags: [aws-lambda](<https://devfeed.tech/tags/aws-lambda.md>), [chrome](<https://devfeed.tech/tags/chrome.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [serverless](<https://devfeed.tech/tags/serverless.md>), [websockets](<https://devfeed.tech/tags/websockets.md>)

### AI overview

Modal describes how it built modal-http, a Rust service that translates HTTP and WebSocket requests into serverless function calls. The post explains its ASGI event protocol, streaming and backpressure, handling of failures and long-running requests, and ingress architecture. Modal reports that replacing its previous Python-based ingress reduced production 502 errors by 99.7%.

### Source excerpt

In this post, we'll talk about how Modal handles real-time HTTP requests and WebSockets in serverless functions.