Menu

Thirty candidates in one classroom share one IP address, so our rate limiter counts the link before the client
📰

Thirty candidates in one classroom share one IP address, so our rate limiter counts the link before the client

DEV Community: redis·Daniel Pertu·about 9 hours ago
#4DDhrQ8O
#devtoredis#devto#dev#client#candidate
Long article (856 words) — no AI summary yet.
Reading 0:00
15s threshold

Most rate limiting advice assumes one address is one person. CogniPrep Assess is sat by candidates, and a university careers session or a recruitment day puts thirty of them behind one address, all opening the same kind of link at the same minute, all reloading after each task. A limiter tuned for the open internet would lock out the room.

The candidate-facing pages, the invitation guide and the sample , are the ones this shaped. Here is how the limiter is arranged.

A preset for every place a request can come from

Instead of one limit and a lot of exceptions, there is a table of named presets, each with a count and a window, and each route says which preset it uses. The presets are grouped by who is asking: signed-in employers, the customer API, sign-in and recovery, candidate entry points, task play, public forms, background jobs, and the live call.

A preset's name is part of its Redis key, and all of them sit under an rl:assess: prefix because the Redis instance is shared with another product.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.