Who is this product for?

This product is tailored for developers who want to build and deploy Django applications in serverless environment on AWS. Whether you're creating a side project or deploying an app for production, this solution simplifies infrastructure management and scaling using AWS services.

It can also be used by developers or learners who want to understand how Python/Django applications can be deployed on AWS, leveraging an Infrastructure as Code (IaC) approach with tools like CloudFormation and AWS SAM.

Use Cases

This product is suited for developers who need to:

  • Build web applications without managing EC2 or RDS instances.
  • Leverage serverless infrastructure to reduce costs, especially for small to medium projects.
  • Run their Django applications in a highly available multi-AZ environment.
  • Deploy apps that can scale down to zero, ensuring cost efficiency during low-traffic periods.

Demo

Explore a sample Django polls application, built using our serverless architecture:

This very website is also powered by the same architecture, giving you a live example of its reliability and performance.

Architecture

This solution uses the following AWS services:
  1. AWS Lambda
  2. Amazon VPC
  3. Amazon EFS
  4. Amazon DynamoDB
  5. AWS Secrets Manager
  6. Amazon S3
  7. Amazon Route 53
  8. Amazon API Gateway
  9. Amazon CloudFront
  10. AWS Certificate Manager
  11. Amazon CloudWatch
  12. AWS CloudFormation
  13. AWS SAM

Overview

Features

  • IPv6-ready for modern networking.
  • HTTPS-only by default, with the latest secure ciphers.
  • Supports HTTP/3 and Brotli for faster web performance.
  • Async-ready to handle asynchronous Django applications.
  • Security headers are pre-configured to ensure your app is secure from the start.
  • Automatic cache busting to keep your static assets updated without manual intervention.
  • Configurable automatic database backup and manual restore via CLI for data recovery.
  • Optionally activated keep-warm task to reduce Lambda cold-start latency for better responsiveness.

Environment Options

  • LOCAL: Designed for local development using Docker and Dev Containers in VS Code.
  • DEV: For remote testing and staging in the cloud, ensuring your app runs as expected before going live.
  • PROD: For production, ensuring high availability and security in a live environment.

Benefits

  • Multi-AZ deployment ensures high availability and reliability.
  • 99.99% SLA for Amazon EFS, significantly higher than single-AZ RDS, which provides only 99.5% SLA.
  • No need to manage complex networking or database servers.
  • The entire infrastructure is described in an Infrastructure as Code (IaC) template, allowing for quick and easy deployment with minimal manual configuration.
  • Serverless infrastructure can scale automatically, improving efficiency and reducing costs.
  • Applications can remain mostly within AWS Free Tier limits for smaller projects, further minimizing operational costs.
  • The setup includes a complete local development environment for VS Code and Docker, allowing for a quick start with minimal effort.

Limitations

Despite its readiness for production use, there are some limitations to consider:

  • Write-heavy applications: Due to the use of SQLite as the database, this solution isn't suitable for write-intensive applications. During any write operation, the database is locked, blocking all reads and writes until the operation completes.
  • High Latency: The use of SQLite and network-attached storage (EFS) can result in higher latencies, making it less suitable for latency-sensitive applications.
    • Read Latency: Even for read-only requests, the latency for a typical Lambda execution with a Django app interacting with the database is over 100-150 ms.
    • Write Latency: Write operations have a latency of 300 ms or more during a typical Lambda execution.
  • External API calls: The Lambda function is deployed in a VPC and cannot access external IPv4 resources, so any resources that your application needs to connect to must be available via IPv6.
This solution is designed for environments where write operations are infrequent. If your application requires an architecture that can offer better performance and scalability, take a look at the Standard edition.

Supported Versions

  • Python: 3.12
  • Django: 5.1

Technical Support

This product includes one hour of email support. You may optionally purchase an additional support or customization package. Please contact us for details.

License

This software is released under a commercial license.

Pricing

Get the complete solution to deploy your Django application on AWS with a serverless architecture, ensuring security, and ease of use at a competitive price.

One-Time Purchase: $190

Order Now