Django vs PHP 8.*: Memory usage with 1000 concurrent visitors [closed]
I'm currently deciding between Django (Python) and PHP 8.* for a very large project that expects high traffic. Memory usage is a crucial factor for me since the website will need to handle a significant number of concurrent visitors. For example, let's say the site needs to handle 1000 concurrent visitors. Please consider that the project will be well optimized.
From what I understand:
- PHP creates a new process for each request, which might lead to higher memory consumption under heavy load since each request is handled separately.
- Django, on the other hand, uses a persistent process to handle requests, which might help with better memory management but could also cause its own memory-related concerns under high traffic.
I've asked ChatGPT for advice on this, but it gives random and wrong answers, so I don't trust it. I'm looking for insights or benchmarks that compare the memory usage of PHP and Django when handling high traffic and concurrent users. Specifically, how much memory each might use when handling around 1000 concurrent visitors, and any research on how each stacks up in terms of scalability and memory efficiency.
Which language/framework would you recommend if memory usage is a key factor for my project?
Thanks in advance!