← Questions

API rate limiter over a request log with pluggable rules

0
CursorCodingLast asked Jan 2026

A coding interview question asked in Cursor's technical screens round, last asked Jan 2026. It tests rate limiting, sliding window and interface design.

An AI code editor's backend has seen fast growth in calls to its completions API and other endpoints, and needs a rate limiter. You get the traffic as an in-memory list of requests, each [user_id, request_url, body_size, timestamp] with…

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

  • Cursor · Technical screens · Last asked Jan 202660 min · One to three live coding rounds · No AI other than autocomplete; Cursor's CEO calls coding without AI a time-boxed test of skill

What it tests

rate limiting · sliding window · interface design

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