Mozilla Interview Question
17 Interview Reviews |
Back to all Mozilla Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Web Developer at Mozilla:
How would you fix a Django application that was only serving 10 requests per second?
| Tags: | analytical, django See more , See less 8 |
Helpful Question?
Yes |
No
Inappropriate?
0 of 0 people found this helpful
by Interview Candidate:
Some possibilities:
- Find slow requests by examining the web server or app server logs.
- Profile the requests using the profile/cProfile python modules.
- Optimize any queries the requests are performing or the database schema the queries are executed against. This depends a lot on the database being used.
- If possible, move expensive create/update/delete tasks into a background job queue and out of the request/response cycle.
- Add more app servers or database servers.
- Apply more caching, particularly of expensive retrieval tasks.