This is more an issue at the file system level and the hardware not being able to keep up rather than anything Django is doing. It's the same fundamental principal for why you may turn off webserver logging to increase performance, writing to disk is expensive and so when dealing with high throughout you probably want to question why.
I've just run that on my laptop and hit your 1000 requests fine. I actually them bumped it up to run 6 requests per iteration and still was fine writing to disk. I started to have network resource issues when I bumped it up further but that was more limitations within chrome In the real world if you were writing logs like this for information or debugging you would be best served to defer them by writing to a message queue of sort some, probably FIFO based as its logging, and then have as many subscribers as you want dealing with reading and processing those queued messages. This could be as few as one so that you never hit a deadlock or it could be a few, again it depends on the performance of the underlying hardware, what you are writing and where (database, disk, memory). On Wednesday, 22 April 2020 18:23:31 UTC+1, Brian Tiemann wrote: > > Hi all, > > I was directed here after getting corroboration on #django and elsewhere. > > I have what appears to be a bug in which a Django app can deadlock if you > hit it with a lot (>3) of AJAX requests within a short time (i.e. all > triggered in parallel from a single HTML page). I have a reproducible case > here: > > https://github.com/data-graham/wedge > > I'd really appreciate it if someone could take a look and let me know > whether I'm doing something wrong, or if there's something systemic going > on. Thanks much! > > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/1445d05d-eefc-43b1-8913-79d6e55de216%40googlegroups.com.