An ASGI Server from scratch

Echo server to a basic ASGI server in a talk

Philip Jones

ASYNC / Concurreny Web Web Protocols Web Servers and MicroFWs (Flask/Tornado/Nginx/...)

See in schedule Download/View Slides

I intend for this to be a fairly advanced talk that shows the steps required to go from a TCP echo server to a basic HTTP/1 ASGI server using asyncio for the IO. This is aimed at people who've read about asyncio, coroutines, etc and want to see them used in practice.

This is a tutorial on how to build a HTTP/1 ASGI server using asyncio. I plan to start by building a TCP echo server and then add HTTP parsing and ASGI compliance.

Type: Talk (30 mins); Python level: Advanced; Domain level: Advanced


Philip Jones

Moneyed

I primarily contribute to open source in Python on projects related to web development specifically the HTTP stack.

I co-founded Moneyed (moneyed.co.uk) at the start of the year and I'm working to make financial planning tools available to all.