← Questions

Repair a multi-rule rate limiter in a Django app

0
OpenAICodingLast asked Jul 2026

A coding interview question asked in OpenAI's onsite coding round, last asked Jul 2026. It tests debugging, rate limiting and concurrency.

You get a running Django service (Python, with a pytest suite) whose rate limiter enforces several sliding-window rules at once, for example a per-second and a per-minute limit on the same client. It misbehaves.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • OpenAI · Onsite coding · Last asked Jul 202660 min · Live coding; the problem often rebuilds a familiar system in several parts · No AI

What it tests

debugging · rate limiting · concurrency · django

Your code and the AI tutor open when you unlock this question.