Skip to content

[Question] This or ServeStatic? #2

@mecampbellsoup

Description

@mecampbellsoup

I came across ServeStatic when searching through the WhiteNoise docs/issues/etc. on GitHub for ASGI/async keywords.

Like many/most of us, I'm using uvicorn and running Django as an ASGI app.

I'm fine with bypassing nginx/HAProxy for static file serving given that with something like WhiteNoise, all your Django app does is tell the webserver (uvicorn in my case) to sendfile which it should be pretty good at (not as optimized as NGINX, but not problematic whatsoever for my use case and scope of my app).

Is there a strong case to be made for either:

Would love to hear discussion for people like me trying to decide. I imagine both are probably quite suitable, but figured I'd ask the community :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions