Implement and Test a Sliding-Window Rate Limiter

Quick Overview

Design an in-memory limiter with `allow(key, timestamp)` for a configurable maximum number of requests in the preceding window. Make the API or object boundaries explicit, then cover invariants, edge cases, testing strategy, and operational trade-offs.

Implement and Test a Sliding-Window Rate Limiter

Company: Snowflake

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: medium

Interview Round: Onsite

Overview: Design an in-memory limiter with `allow(key, timestamp)` for a configurable maximum number of requests in the preceding window. Make the API or object boundaries explicit, then cover invariants, edge cases, testing strategy, and operational trade-offs.

|Home/Software Engineering Fundamentals/Snowflake
Snowflake logo
Snowflake
Jun 2, 2026
mediumSoftware EngineerOnsiteSoftware Engineering Fundamentals
2
0
Loading...
Loading comments...