Breaking HTTP Boundaries: ASGI to build a fleet management system in Python

Track:
Web Development, Web APIs, Front-End Integration
Type:
Talk
Level:
intermediate
Duration:
30 minutes

Abstract

Breaking HTTP Boundaries: ASGI to build your fleet management system in Python

ASGI (the Asynchronous Server Gateway Interface) is a spiritual successor to WSGI, providing a standard interface between async-capable Python network protocol servers, frameworks, and applications. While ASGI is primarily known for web applications, its powerful interface extends beyond HTTP and WebSockets. This talk demonstrates how to leverage ASGI concepts to build a custom protocol server of your choice.

We'll explore the ASGI specification in detail and learn how to apply it to custom application layer protocols through the lens of a fleet management system built from scratch.

We'll dive deep into:

  • Core concepts of the ASGI specification and its protocol-agnostic design principles
  • Understanding the distinction between protocol servers and applications
  • A practical demonstration showcasing ASGI's flexibility and features through a fleet management system example. We'll explore two different ASGI applications within one system: an ASGI application that collects vehicle data over a telematics TCP protocol and an ASGI web server that serves this data through a Python-built UI.

By the end of this talk, you'll discover that ASGI isn't just limited to web apps - it's a powerful tool that enables you to create any network protocol server in Python while maintaining asynchronous performance and efficiency.