---
title: "Discussion on \"Fixed Window vs Token Bucket: I Let an AI Agent Build Both and Broke One With 20 Requests\" | Hashnode"
description: "Discussion on \"Fixed Window vs Token Bucket: I Let an AI Agent Build Both and Broke One With 20 Requests\". A rate limit of 10 requests per second sounds like it means 10 requests per second. I asked an AI agent to write two rate limiters in Node.js, a fixed window counter and a token bucket, and I ran a bo"
url: "https://hashnode.com/posts/fixed-window-vs-token-bucket-i-let-an-ai-agent-build-both-and-broke-one-with-20-requests/6b0e3f0d4a2536adc00230ee"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Fixed Window vs Token Bucket: I Let an AI Agent Build Both and Broke One With 20 Requests](https://shipstackai.hashnode.dev/fixed-window-vs-token-bucket-i-let-an-ai-agent-build-both-and-broke-one-with-20-requests?utm_source=hashnode&utm_medium=feed)

A rate limit of 10 requests per second sounds like it means 10 requests per second. I asked an AI agent to write two rate limiters in Node.js, a fixed window counter and a token bucket, and I ran a bo

1d ago · 3 min read · shipstackai.hashnode.dev  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#artificial-intelligence](https://hashnode.com/tag/artificial-intelligence)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Ship Stack](https://hashnode.com/@shipstackai)

@shipstackai

  
[View profile](https://hashnode.com/@shipstackai)

Real AI-built Node.js projects, tools and workflows.

Real AI-built Node.js projects, tools and workflows. Every experiment is built and load-tested on camera, with the real numbers. Videos: https://www.youtube.com/@ShipStackAI

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
