Skip to content

000 django lambda

David Gage edited this page Oct 8, 2020 · 4 revisions

Design for running a Django service on AWS Lambda

proposed

Context

AWS Lambda is being encouraged as the runtime for eRegs. Being a Django project, eRegs is typically run as a Python WSGI application.

Decision

https://www.serverless.com/blog/django-serverless-framework-a-match-made-in-heaven

service: example

provider:
  name: aws
  runtime: python3.6

plugins:
  - serverless-wsgi

functions:
  core:
    handler: wsgi_handler.handler
    events:
      - http: ANY /
      - http: ANY {proxy+}
  site:
    handler: wsgi_handler.handler
    events:
      - http: ANY /
      - http: ANY {proxy+}

custom:
  wsgi:
    core: wsgi.application
    site: wsgi.application
  • TODO: we need to show that we can do this with the existing programs.

Consequences

Requires wsgi.py files or equivalent for our systems.

Overview

Data

Features

Decisions

User research

Usability studies

Design

Development

Clone this wiki locally