[Fixed]-Django verify HttpResponse reached user

1👍

Short answer is no. In production, there will be several layers of abstraction on top of django that prevent django from getting the level of detail that you want. In a small production set up, you will have

user --> nginx or apache --> gunicorn or wsgi running django

So at best, django will only be able to tell if nginx or apache received the response.

In larger scale production systems you will have

user --> load balancer --> nginx or apache --> gunicorn or wsgi running django

And in some even larger production scale systems you might see:

user --> cloudflare or incapsula (caching and firewall service) --> load balancer --> nginx or apache --> gunicorn or wsgi running django

So the short answer is, absent a special ACK or confirmation message, like the one that you already have in place, this can’t be done.

👤2ps

Leave a comment