Mangum

screenshot of Mangum
django

AWS Lambda support for ASGI applications

Overview

Mangum is a powerful adapter designed specifically for running ASGI applications seamlessly within the AWS Lambda environment. This tool is incredibly helpful for developers looking to handle events from various sources, such as Function URLs, API Gateway, Application Load Balancer (ALB), and even Lambda@Edge events. With its user-friendly capabilities, Mangum bridges the gap between ASGI frameworks and the serverless architecture offered by AWS.

This adapter not only enhances the deployment experience but also ensures that applications can leverage the full potential of AWS services without compromising on performance or compatibility. Whether you’re developing with frameworks like FastAPI or Django, Mangum provides an efficient solution for managing event-driven applications in the cloud.

Features

  • Comprehensive Event Handling: Supports event handlers for API Gateway HTTP and REST APIs, Application Load Balancer, Function URLs, and CloudFront Lambda@Edge.

  • Framework Compatibility: Works seamlessly with popular ASGI application frameworks including Starlette, FastAPI, Quart, and Django, making it versatile for various projects.

  • Enhanced Media Type Support: Supports binary media types and allows for payload compression in API Gateway through GZip or Brotli, optimizing data transmission.

  • Deployment Tool Integration: Compatible with major deployment and configuration tools like Serverless Framework and AWS SAM, simplifying the setup process.

  • Lifecycle Management: Offers startup and shutdown lifecycle events, providing developers control over application behavior during these critical phases.

  • Easy Installation: Provides a straightforward installation process that ensures a smooth integration into existing projects, enabling faster onboarding for teams.

Mangum's capabilities make it an excellent choice for anyone looking to leverage the power of serverless architecture with their ASGI applications in AWS.

django
Django

Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. It follows the model-view-controller (MVC) architectural pattern, providing an extensive set of built-in tools and conventions to streamline the creation of robust and scalable web applications.